Professional Documents
Culture Documents
4. Can we print all the value in array without for loop or in other way?
->You can print by using while (but, for is the best way.)
int ii[ ] = {100, 200, 300, 400};
int i = 0;
while (i<4){
cout << ii[i] << endl;
}
Sreyka