Thursday, March 29, 2012

Using comments in a program

#include <stdio.h>
 
main()
{
   // Single line comment in c source code
 
   printf("Writing comments is very useful.\n");
 
   /*
    * Multiline comment syntax
    * Comments help us to understand code later easily.
    * Will you write comments while developing programs ?
    */
 
   printf("Good luck c programmer.\n"); 
 
   return 0;
}

No comments:

Post a Comment