Skip to content

Variables ​

A variable is a named storage location. A declaration specifies its type, and initializing the variable at the point of declaration is generally preferred.

cpp
int count{0};
double price{19.9};
const bool enabled{true};

Subtopics ​