Filling Arrays
Since many arrays are quite large, using an array initializer is impractical.
Large arrays are often filled using a for loop.
for ( i = 0; i < 100; i++)
{
rolls [ i ] = 0 ;
}
would set every element of the 100 element array, rolls, to 0.
Previous slide
Next slide
Back to first slide
View graphic version