Skip to main content

Basic of C programming


C programming language is a widely used programming language for creating computer programs. It is well known for it's simplicity. Besides easy to use feature, it is efficient and have controlling power too.

Starting with what is C
C is a Procedural Oriented Programming language. One can write instructions for computer to follow. It is a case-sensitive language, that is, there is a difference between 'a' (a in lower-case) and 'A' (A in upper-case). C is an example of compiled programming language, which means, C compiler converts the source program into an executable machine code. A C source program is in human readable form while an executable program is in machine readable form.

The Basic C Program
#include

int main()
{
printf("Hello World!");
return 0;
}

Explanation of the terms:
#include represents pre-processor directive which gives the instruction to the machine to include the header file.

is one of the major header files in the standard input/output library of C programming.

int represents the return type of the program. In this case, the return value is zero (return 0;). This return value represents that there is no error in the source program.

printf() is a built-in function which is contained inside stdio.h. A message (Hello World!) passed inside this function gets displayed on the output screen.

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.