C Comments

Comments In c

Comments are usually non executable statements which are meant for the programmers own convenience.

A comment is usually explanation regrading the statement. The compiler ignores these comments when it translates the program into executable code.

Types of Comments

Basically there are two types of comments in C Language.

Single Line comment

Single line comment allows only one line. these comments must begin with //(double slash).



 Hello World

Multi line comment

If the comment exceeds more than one line, multi line comment is used. Multi line comment begin with /* and end with */



 Hellow World