Tsallaka zuwa abun ciki
Justice Tech School

C Syntax

A program includes headers with #include, then defines main, where execution starts. Statements end with a semicolon. \n in a string means a new line, and main returns 0 to tell the system it succeeded.

Example
printf("Line one\n");
printf("Line two\n");

Result

Line one
Line two

Exercise

Which character ends a statement?

printf("x")

Quiz Test

Where does a C program start?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.