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


diana chang

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

 

Did you know?

Automated pill dispensing systems have alarms to alert patients when the correct dosing time has arrived. Most systems work with many varieties of medications, so patients who are taking a variety of drugs can still be in control of their dose regimen.

Did you know?

Although not all of the following muscle groups are commonly used, intramuscular injections may be given into the abdominals, biceps, calves, deltoids, gluteals, laterals, pectorals, quadriceps, trapezoids, and triceps.

Did you know?

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

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

Did you know?

Approximately 15–25% of recognized pregnancies end in miscarriage. However, many miscarriages often occur before a woman even knows she is pregnant.

For a complete list of videos, visit our video library