cppforever.com
Home
Syntax rules
Statement
Types of statements
Declaration
Go Up
Why variable must be declared
Reference declaration
External declaration
Local declaration
Declaration
provides new memory location for data
creates new variable with given name
declaration is mandatory
parts: name and type
Variable can change its value.