Programming - Arrays - Discussion

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

 



Q.

Suppose that str is a character array of size 51 and the input is: Cool Winter
Which of the following statements stores this string in str?
(i) cin.get(str,51);
(ii) cin>>str(51);                         


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