Comments in C Language

Written by

studymite

Comments in C

 

You can use comments in C programming language and these comments can be used to include additional information about the program.

Comments are important in large projects which consists of thousands of lines of code.

Syntax :

                   
    // comment goes here

Or

                   
    /* comment goes here */

Or

                   
    /*
     *  Comment goes here
     */

Example :

Using single line comment:

                   
    /* Author: StudyMite.com */

Or

                   
    // Author: StudyMite.com 

Using multi line comment:

                   
    /*
    *  Author: StudyMite.com
    * Tutorial: Learn C
    */
Comments in C Language