Typed variable
Variable with a specified type.
Syntax
type name = value;
Description
C++ is statically typed: int, double, char, bool, string. Requires <string> for string.
Example
Loading editor…
Expected output
Alex 36
When to use?
Storing all kinds of data.