Using Types
To declare an integer to be used as a counter use the syntax:
void main()
{ int counter;
}
C allows us to give a variable, of an intrinsic type, an initial value.
void main()
{ int counter = 0;
}
Previous slide
Next slide
Back to first slide
View graphic version