Comments in C

In the C language, the comments are added in the source code that is ignored by the compiler. Comments help the user to easily understand the c source code and provide clarity on the source code. It also helps in error-free debugging of the code.

Comments can be of two types:-

Single Line Comments: This starts with // and continue until the end of the line.
Multi-Line Comments: This starts with /* and ends with */.

The example of a Comment is:

/* comment goes here */


comment goes here

Coding Tag

Coding Tag always happy to serve you in Information Technology (IT). Learn HTML, CSS, Javascript, PHP, Android, Digital Marketing, Latest IT News and many more.

Leave a Reply

Notify of