09 Februari, 2018

C Programming | Getting started.

Halo, guys. It's been a long time indeed, but from now on, I'm going to keep posting again. Few years back, I used to bring forth stuff about SAMP or PAWNO. But, as the time runs, I've been learning various programming languages, such as C, C++, JAVA, PYTHON, PHP, HTML, CSS, JAVASCRIPT and many more. So, I would post some tutorials about them, but from now I'll be posting stuff about C first. So, let's get started!

C is considered as the fastest programming language. Why? Because C in the hierarchy, is the closest to the machine language, but C is also close to human language. That's why C is said to be the fastest language. But, C is also a pretty hard language due to some inhuman language, it makes C pretty hard to understand. That's why some seniors said, you can do anything if you have mastered C. PAWNO is C-based language, so the codes will be similar to C.

To program in C, you may use any IDE such as Microsoft Visual Studio(VCExpress), CodeBlocks, Komodo and many more. But, I prefer to code in GCC since I'm using Kali Linux. Okay, now let the lesson begins!

The very first step than you have to understand is the input/output. Program needs an input and will result outputs. We are going to start with the output first.

#include <stdio.h>

int main()
{
printf("TheCreat0r is here!"); //printf("Your text here");
}


In C, our main include is stdio.h. Because, stdio is a standard input and output module which is used by C Programmers to do input and output. We call a function named printf, stands for print format, and is used to show outputs to the users. So whenever you want to show outputs, call this function.

Okay, maybe that's it for today, guys. In the next occasion, I will talk about variables and formatted outputs. Make sure you keep your head cool, it's not easy, but we can always do it! See ya!

Best regards, Ryu.
If you have some problems about programming, feel free to contact me via e-mail. 
E-mail: ryutaroushirogane@gmail.com
TheCreat0r of Omnipotent.

Tidak ada komentar:

Posting Komentar