- #include <stdio.h>
- int main( int argc, char* argv[] )
- This line is the header of the
definition of the main()
function
- The function main()
will return an integer error code
(may be used by a shell script to check for the outcome)
- The parameters of main()
are:
int argc = number of parameter strings
char* argv[] = array of String
argv[0] = first argument
argv[1] = second argument
...
argv[argc-1] = last argument
|
|
- printf("Hello World !\n");
- This is the statement inside the
body of the
main()
function
- printf is the
C library function to print outputs to the terminal
|
|