Programming - Arrays - Discussion

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

 



Q.

What is the value of alpha[3] after the following code executes?
int alpha[5];
int j;
for(j = 4; j >= ; j--)
{
alpha[j] = j + 5;
if(j <= 2)
alpha[j + 1] = alpha[j] + 3;
}                         


A. 5 B. 8
C. 9 D. 10

Answer: Option D
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion