|  
The Hello World program in C:
   
 #include <stdio.h>
 int main( int argc, char* argv[] )            
 {
    printf( "Hello World !\n" );
 } 
    |  
DEMO: demo/C/set1/hello.c
   
   
  |  
The #include compiler directive in C:
   
   #include <stdio.h>
   int main( int argc, char* argv[] )            
   {
      printf( "Hello World !\n" );
   } 
    |  
The #include <stdio.h> directive tells the C pre-processor to include the file stdio.h inside /usr/include folder
The file /usr/include/stdio.h is C's standard IO header file
This file contains constant and variable definitions to allow C programs to perform commonly used input/output operations.
Comment: we will study the #include directive in more detail later...
   
   
  |  
The Hello World program in C:
   
   #include <stdio.h>
   int main( int argc, char* argv[] )            
   {
      printf( "Hello World !\n" );
   } 
    |  
This line is the header of the definition of the main() function
The Hello World program in C:
   
   #include <stdio.h>
   int main( int argc, char* argv[] )            
   {
      printf( "Hello World !\n" );
   } 
    |  
The printf( ) function prints the parameter string to the terminal (output)