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
Q41: What is the output of the
Q42: When a program lets the user know
Q43: This statement uses the value of a
Q44: The default section of a switch statement
Q45: Given the if/else statement:
If (a < 5)
B
Q46: Input values should always be checked for
A)
Q47: Which line in the following program
Q48: Given the following code segment, what is
Q50: Without this statement appearing in a switch
Q51: Given that x = 2, y =
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents