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 52 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


meganmoser117

  • Member
  • Posts: 303
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Famous people who died from poisoning or drug overdose include, Adolf Hitler, Socrates, Juan Ponce de Leon, Marilyn Monroe, Judy Garland, and John Belushi.

Did you know?

Oliver Wendell Holmes is credited with introducing the words "anesthesia" and "anesthetic" into the English language in 1846.

Did you know?

The heart is located in the center of the chest, with part of it tipped slightly so that it taps against the left side of the chest.

Did you know?

Drug abusers experience the following scenario: The pleasure given by their drug (or drugs) of choice is so strong that it is difficult to eradicate even after years of staying away from the substances involved. Certain triggers may cause a drug abuser to relapse. Research shows that long-term drug abuse results in significant changes in brain function that persist long after an individual stops using drugs. It is most important to realize that the same is true of not just illegal substances but alcohol and tobacco as well.

Did you know?

More than 30% of American adults, and about 12% of children utilize health care approaches that were developed outside of conventional medicine.

For a complete list of videos, visit our video library