This topic contains a solution. Click here to go to the answer

Author Question: Which statement allows you to properly check the char variable code to determine whether it is equal ... (Read 42 times)

abc

  • Hero Member
  • *****
  • Posts: 543
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?
if (code == C)
   cout << "This is a check" << endl;

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

if code is equal to C
   cout << "This is a check\n";

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


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by abc on May 22, 2019

dajones82

  • Sr. Member
  • ****
  • Posts: 359
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




abc

  • Member
  • Posts: 543
Reply 2 on: May 22, 2019
YES! Correct, THANKS for helping me on my review


rachel

  • Member
  • Posts: 323
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Most women experience menopause in their 50s. However, in 1994, an Italian woman gave birth to a baby boy when she was 61 years old.

Did you know?

Nearly 31 million adults in America have a total cholesterol level that is more than 240 mg per dL.

Did you know?

Allergies play a major part in the health of children. The most prevalent childhood allergies are milk, egg, soy, wheat, peanuts, tree nuts, and seafood.

Did you know?

More than 2,500 barbiturates have been synthesized. At the height of their popularity, about 50 were marketed for human use.

Did you know?

It is believed that the Incas used anesthesia. Evidence supports the theory that shamans chewed cocoa leaves and drilled holes into the heads of patients (letting evil spirits escape), spitting into the wounds they made. The mixture of cocaine, saliva, and resin numbed the site enough to allow hours of drilling.

For a complete list of videos, visit our video library