codegurukool.com · Free coding tutorials & online compiler

Home › C Tutorial › C syntax

C syntax

Parts of a C program.

#include loads a library. main() is where execution starts. Statements end with ;. Braces group code. return 0 reports success.

Example code

#include <stdio.h>

int main() {
  printf("Syntax\n");
  return 0;
}

Run this code in the online editor

← C get startedC output →