Programming - Arrays - Discussion

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

 



Q.

Suppose that alpha is a character array of size 20. Which of the following statements is valid in C++?
(i) cin>>alpha;
(ii) strcpy(alpha, "Fair");
(iii) alpha[0] = 'C';                         


A. Only (i) B. Only (ii)
C. Only (iii) D. All (i), (ii), and (iii)

Answer: Option c
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion