Monday, February 17, 2020

Using comments in a program


#include <stdio.h>

int main()
{
   // Single line comment in a C program

   printf("Writing comments is very useful.\n");

   /*
    * Multi-line comment syntax
    * Comments help us to understand a program later easily.
    * Will you write comments while writing programs?
    */


   printf("Good luck C programmer.\n");

   return 0;
}

No comments:

Post a Comment