Programming - Arrays - Discussion

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

 



Q.

Consider the following declaration:
int beta[3];
int j;
Which of the following input statements correctly inputs values into beta?
(i)
cin>>beta[0]
>>beta[1]
>>beta[2];
(ii)
for(j = 0; j < 3; j++)
cin>>beta[j];                         


A. Only (i) B. Only (ii)
C. Both (i) and (ii) D. None of these

Answer: Option B
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion