Some Shorthand
Increment and Decrement Operations
variable ++
is equivalent to
variable = variable + 1
Similarly,
variable --
is equivalent to
variable = variable - 1
Example:
freq[grade]++ ;
Previous slide
Next slide
Back to first slide
View graphic version