Multiple Choice
Which statement allows you to properly check the char variable code to determine whether it is equal to a C and then output This is a check?
A) if code is equal to C
cout << "This is a check\n";
B) if (code = "C")
cout << "This is a check\n";
C) if (code == 'C')
cout << "This is a check\n";
D) if (code == C)
cout << "This is a check" << endl;
Correct Answer:

Verified
Correct Answer:
Verified
Q18: What is the value of the following
Q23: Input values should always be checked for<br>A)
Q24: Which line in the following program
Q26: You should be careful when using the
Q27: The value of result in the following
Q29: The default section is required in a
Q30: If the expression on the left side
Q31: As a rule of style, when writing
Q32: Without this statement appearing in a switch
Q33: What is the value of result