C Tutorial

C Syntax

C Syntax

Every C program has rules for how statements are written and executed.

  • Follow C syntax rules for statements and blocks
  • Use comments to document code
  • Run examples in the Try it editor

Example

int count = 10;
printf("%d", count);
Try it Yourself
Run this C example in your local environment or course sandbox.