Variables
A variable is an identifier that represents a location in memory that holds a particular type of data
Variables must be declared before they can be used
The syntax of a variable declaration is:
data-type variable-name;
For example:
int total;
Previous slide
Next slide
Back to first slide
View graphic version