Programming - Arrays - Discussion

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

 



Q.

What is the value of alpha[2] after the following code executes?
int alpha[5];
int j;
for(j = 0; j < 5; j++)
alpha[j] = 2 * j + 1;                         


A. 1 B. 4
C. 5 D. 6

Answer: Option B
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion