Skip to content

Variables

CD2 edited this page Feb 8, 2023 · 1 revision

Defining Variables

If you write the variable name after the type name, it becomes the definition of the variable.

int a; // define a variable named a of type int

float b, c = 0.0;

// Initial values ​​of base types and enum types are undefined if not assigned

Clone this wiki locally