Before starting the abcd of C language, you need to learn how to write, compile and run the first c program.
To write the first c program, open the C console and write the following code:
#include<stdio.h>
int main(){
printf("Hello C Language");
return 0;
}
#include<stdio.h>
includes the standard input output library functions.
The printf()
function is defined in stdio.h .
int main() The main()
function is the entry point of every program in c language.
printf() The printf()
function is used to print data on the console.
return 0 The return 0
statement, returns execution status to the OS. The 0 value
is used for successful execution and 1 for unsuccessful execution.