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 41 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
Gracias!


mcarey591

  • Member
  • Posts: 365
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Street names for barbiturates include reds, red devils, yellow jackets, blue heavens, Christmas trees, and rainbows. They are commonly referred to as downers.

Did you know?

Hippocrates noted that blood separates into four differently colored liquids when removed from the body and examined: a pure red liquid mixed with white liquid material with a yellow-colored froth at the top and a black substance that settles underneath; he named these the four humors (for blood, phlegm, yellow bile, and black bile).

Did you know?

If all the neurons in the human body were lined up, they would stretch more than 600 miles.

Did you know?

In 2012, nearly 24 milliion Americans, aged 12 and older, had abused an illicit drug, according to the National Institute on Drug Abuse (NIDA).

Did you know?

The oldest recorded age was 122. Madame Jeanne Calment was born in France in 1875 and died in 1997. She was a vegetarian and loved olive oil, port wine, and chocolate.

For a complete list of videos, visit our video library