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;
}