Programming - Arrays - Discussion

You Are Here :: Home > C++ Language > Arrays - Discussion

 



Q.

Consider the following declaration:
int list[10];
int j;,br>Which of the following correctly outputs all the elements of list?
(i)
for(j = 1; j < 10; j++)
cout<cout<(ii)
for(j = 0; j <= 9; j++)
cout<cout<                        


A. Only (i) B. Only (ii)
C. Both (i) and (ii) D. None of these

Answer: Option D
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion