Comments in C Language

The lines beginning with /* and ending with */ are known as comment lines.

These are used in a program to enhance its readability & understanding comments are included in a ‘C’ program when ever some explanation is required for that part of a program.

Comment lines are not executable statements & anything between /* and */ is ignored by the complier.

C language supports 2 types of comments.

1. Single line comment : starts with //
2. Multi line comment : starts with / * and ends with */.

Although comments can appear any where, they cannot be nested in C. that means, we cannot have comments inside comments.

Comments do not affect the execution speed & the size of a compiled program. They help the programmers  & other users in understating the various functions & operations of a program. 

Related

C Language 944269009409092547

Post a Comment

emo-but-icon

item