single line comment in c code example

Example 1: comment in c++

// This is a single one line comment

/*
multiline comment
*/

Example 2: c++ comment

/* This is a comment */

/* C++ comments can also
   * span multiple lines
*/

/* Meowwwwww */

Example 3: multi line comment c

/* this is how
   you comment multiple lines
   in c
   */

Example 4: how to add comment in c

A comment in C starts with
/*
This is a comment, it ends with
*/

Example 5: how to add a comment in c

// This is a single-line comment

/* This is
a multi-line
comment */

Tags:

C Example