Basic Syntax
C++ syntax defines how code is written and structured. Understanding basic syntax is essential for writing valid C++ programs.
Program Structure
C++ programs consist of one or more source files containing declarations, definitions, and the required main() function.
Keywords & Tokens
Tokens are the smallest units of a C++ program. Keywords are reserved words with special meaning that cannot be used as identifiers.
Expressions
Expressions produce values; statements perform actions. Understanding the distinction is fundamental to C++ programming.
Operators
5 items
Control flow
3 items