Programming - Arrays - Discussion

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

 



Q.

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


A. 5 B. 8
C. 11 D. 14

Answer: Option B
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion