Solved

Which Statement Allows You to Properly Check the Char Variable

Question 28

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions