Comments are used to provide information about a line of code or block of code for a developer. We can easily remember by showing the comments.
When we are using comments in the programming then that specific part of the programming is ignored by compilers.
In c programming language we having 2 types of comments i.e.
Single line comments can be provided by using //.
Multi line comments can be provided by using / * - - - - */.
When we are working with multiline comments then nested comments are not
possible i.e. comments within the comments.
Example(Single Line comment):
#include<stdio.h> int main(){ //Hello World Example printf("Hello World"); return 0; }
Example(Multi Line comment):
#include<stdio.h> int main(){ /*printf("Hello World"); printf("Example"); */ return 0; }