// single-line comment
/*
multi-line
comment
*/
// This is a single-line comment
/* This is
a multi-line
comment */
// one line comment
/*
more than
one line
comment
*/
A comment in C starts with
/*
This is a comment, it ends with
*/
/* comments in c work like this */
/*they can be one line...*/
/*
...or
multiple
lines
*/
printf("Hello World"); /* you can comment in the same line with code */
#include stdio.h
int main(){
printf("Only this code will be printed.");
//This is a single line comment.
/*
this is a multiple line
comment
*/
}