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;


c. if (code == 'C')
cout << "This is a check\n";

Computer Science & Information Technology

You might also like to view...

For the Date Range filter, you enter two parameters: one to specify criteria for the start or finish after date and one to specify the before date.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A style ________ is a group of styles that are designed to work together

A) theme B) template C) gallery D) set

Computer Science & Information Technology

The class pair has two constructors: the default constructor and a constructor with two parameters.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The factory default for switches on the top of the 1756-EN2T and 1756-EN2F modules is ____________________, so on power-up, the module will check and see if DHCP or BOOTP is enabled.

What will be an ideal response?

Computer Science & Information Technology