Individual elements of an array can be accessed either with array notation or via pointers.
We have alreadyseen how to access the elements ofarrayusing array notation—[and]:
array[0] = 1; // first element (zeroth offset)
array[1] = 2;
array[2] = 3;
array[3] = 4;
array[4] = 5; // fifth element (fourth offset)
These statements assign the 1..5values to each element of our array, just as the single initialization statement did when we declaredarray[5].