Which statement allows you to properly check the char variab
Which statement allows you to properly check the char variable code to determine if it is equal to a \"C\" and then output \"This is check\" and then advance to a new line? a) if code is equal to C cout
Solution
Question 20:
Answer: C
if(code == \'C\')
cout<<\"This is a check\"<<endl;
Question 21:
Answer: scope
Question 22:
Answer: e) 4
When user enters num value 10 then in switch block default part will execute since no matching case available.
so in default block, total = total + 4
total = 0 + 4 =4 will be assigned to total
