Programming - Arrays - Discussion

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

 



Q.

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


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

Answer: Option A
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion