Hello World In C

Hello World In C

Hello World In C



Open the code editor or online c compiler and start writing the following code.

#include <stdio.h>    
int main(){    
printf("Hello World");    
return 0;   
}  

#include <stdio.h> includes the standard input output header files in the program which is required to for printf function to print.

int main() where the whole execution will take place like function calling in main function.

return 0 means it is successfully executed while return 1 means unsuccessful.

Each statement should be terminated by semicolon ; else it will give compilation error.
Load comments