codegurukool.com · Free coding tutorials & online compiler

Home › C Tutorial › C comments

C comments

Notes for humans.

// comments one line, /* ... */ comments many lines.

Example code

#include <stdio.h>
int main() {
  // single line
  /* multi
     line */
  printf("Comments ignored\n");
  return 0;
}

Run this code in the online editor

← C outputC variables →