Using Pointer Notation
#include <iostream.h>
void main()
{int A[5] = { 31, 54, 77, 52, 93};
for(int j=0; jɝ j++) { // for each element,
cout << endl << *(A + j);
// print value
}
}
Previous slide
Next slide
Back to first slide
View graphic version