C TutorialLesson 4Free preview
C Syntax
This lesson is part of C · All levels
Summary
C syntax is a code-writing rule that must be followed for a program to be compiled. Each statement ends with a semicolon, the block of code is wrapped in curly braces, and the naming is case-sensitive. The play function is where the program code begins, while #include is used to include the library header file. Understand the syntax first, because a small error like a lack of combo dots can derail compilation.
Key points
- Each statement ends with a semicolon (;)
- The block code is bounded by curly braces {and}
- C is case-sensitive: play and play are considered different
- The code after // on the same line is considered a comment and ignored by the compiler
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.