Comments in C

Written By -

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
    */



Report Error/ Suggestion

Related Posts:

[yuzo_views]











CopyRight © 2019

CopyRight © 2019