C – Comments

Home/C - Tutorial/C – Comments
C – Comments 2017-06-12T10:23:20+00:00

Comments

Comments are added to make a program more readable to you but the compiler must ignore the comments. Everything that is inside /* and */ is considered a comment and will be ignored by the compiler. You must not include comments within other comments, so something like this is not allowed: [*].

/* this is a /* comment */ inside a comment, which is wrong! */

Example :

 

Output :

Comments in C

 

Prev Next