Previous Next

C Comments

Comments are not read by the compiler and have no influence on the execution of the program.

Single Line Comments

Example

#include <stdio.h>

int main()
{
    //This is a single line comment
    printf("Hello Coders!");
    return 0;
}

Multi-line comments

Example

#include <stdio.h>

int main()
{
    /* This is
    a multi line
    comment */

    printf("Hello Coders!");
    return 0;
}
Previous Next