Programming - Arrays - Discussion

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

 



Q.

What is the output of the following C++ code?
int alpha[5] = {2, 4, 6, 8, 10};
int j;
for(j = 4; j >= 0; j--)
cout<cout<                        


A. 2 4 6 8 10 B. 10 8 6 4 2
C. 4 3 2 1 0 D. Invalid code

Answer: Option C
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion