Solved

Which Statement Allows You to Properly Check the Char Variable

Question 49

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents