Programming - Arrays - Discussion

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

 



Q.

What is the output of the following C++ code?
int list[5] = {0, 5, 10, 15, 20};
int j;
for(j = 1; j <= 5; j++)
cout<cout<                        


A. 0 5 10 15 20 B. 5 10 15 20 0
C. 5 10 15 20 20 D. Code contains index out-of-bound

Answer: Option A
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion