C Language Hello Word program
C Programming Language program start with first line #include<stdio.h> preprocssor header file and start with main() function body section start {} all written statements will be executable code and provide output. C Programs execution start from main function and return 0 stop line code execution means program’s main function have ended.
Program Example
#include<stdio.h>
int main()
{
printf(“Hello World”);
return 0;
}
The Main Function
int main() this is part of c Program parentheses after main that means main is a block of c program called main function, every c program consist main function and all c program begins executing at the main function. Int “return” to main function data as Integer value.
The Printf Function
printf() is the predefined function which stored in header file #include<stdio.h> and printf() function print the output of C of Program, and every statement end with semicolon ; this is very important to use semicolon ; end of any statement line.
Return
return end the execution of a function and its may return any value or not return value to called function.