Multiple Choice
Assume that a program has the following variable definition: char letter;
Which of the following statements correctly assigns the character Z to the variable?
A) letter = Z;
B) letter = "Z";
C) letter = 'Z';
D) letter = (Z) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: Character constants in C++ are always enclosed
Q13: If you use a C++ key word
Q14: What will the value of x be
Q15: Which escape sequence causes the cursor to
Q16: What will the following code display?<br><img src="https://d2lvgg3v3hfg70.cloudfront.net/TB34225555/.jpg"
Q18: In C++ 11, the _ tells the
Q19: For every opening brace in a C++
Q20: In memory, C++ automatically places a _
Q21: The _ causes the contents of another
Q22: Of the following, which is a valid