The #include is a preprocessor command in c language that tells the compiler to include commands of stdio.h file.
stdio means Standard input and output.
.h means header.
1. stdio.h file contains the function printf() and scanf() .
2. printf()- printf prints the text on a screen.
3. scanf()- scanf get data from the user through a keyboard.
On next line int main(), int is a return datatype of function and main() is function . Every program has main() function compulsory.
Every function in c program written in curly braces '{' '}' i.e in curly braces body of function will be written.
printf("Hello World!"); - After execution this statement display "Hello World" on the screen. And after the statement semi-colon (;) terminates the statement.
return 0; is a statement of the exit status of the program i.e program end.
Comments