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';
Suppose that nameStr is a character array of size 21. Which of the following statements is valid in C++? (i) if(strcmp(nameStr, "Lisa") == 0) cout<(ii) if(nameStr[0] == 'L') cout<
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);
Consider the following declaration. char charArray[51]; char discard; Suppose that the input is:Hello There! How are you? What is the value of discard after the following statements execute? cin.get(charArray,51); cin.get(discard);