#include <stdio.h> int main(void) { printf("hello, world\n"); return 0; }
1)The first line of the program contains a preprocessing directive, indicated by #include
2)Second line indicates that a function named main is being defined. The main function serves a special purpose in C programs
3) Third line calls (diverts execution to) a function named printf, which is supplied from a system library.
4)The return statement terminates the execution of the main function and causes it to return the integer value 0, which is interpreted by the run-time system as an exit code indicating successful execution.
5) The closing curly brace indicates the end of the code for the main function.
No comments:
Post a Comment