Comments in C Language

We can use Single line and Multiple Line Comments in C language. Comments are used to make our program more informative and expressive, also used in cases where we want some lines of code to be skipped from execution.

Single Line Comment

#include<stdio.h>
void main()
{
 printf("Single line comment");
//comments in c language
}

Multiple Line Comment

#include<stdio.h>
void main()
{
 printf("Multiple line comment");

/*tutorial on
comments in
c language*/

}

Leave a Reply

Your email address will not be published. Required fields are marked *