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 39 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
Thanks for the timely response, appreciate it


samiel-sayed

  • Member
  • Posts: 337
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Medication errors are more common among seriously ill patients than with those with minor conditions.

Did you know?

Human kidneys will clean about 1 million gallons of blood in an average lifetime.

Did you know?

In women, pharmacodynamic differences include increased sensitivity to (and increased effectiveness of) beta-blockers, opioids, selective serotonin reuptake inhibitors, and typical antipsychotics.

Did you know?

Multiple experimental evidences have confirmed that at the molecular level, cancer is caused by lesions in cellular DNA.

Did you know?

Alcohol acts as a diuretic. Eight ounces of water is needed to metabolize just 1 ounce of alcohol.

For a complete list of videos, visit our video library