Question: 4. What would be the output of the following code if the user enters 1 ? (1.5 int day; cin > day; switch (day) {

 4. What would be the output of the following code if

4. What would be the output of the following code if the user enters 1 ? (1.5 int day; cin > day; switch (day) \{ case 1: cout "Today is holiday!" e idl; break; case 2 : cout "Today is weekday!" endl; break; \} \begin{tabular}{|l|l|} \hline (a) & \\ \hline (b) & Today is holiday! Today is weekday! \\ \hline (c) & Today is weekday! \\ \hline (d) & Today is holiday! \\ \hline \end{tabular} 5. What would be the output of the following code? int a=1,b=2; if (a1){ cout "Great dea'" endl; } else if (a==1b==2){ cout "Excellt'nt" endl; } \begin{tabular}{|c|l|} \hline (a) & Great deal Excellent \\ \hline (b) & Great deal Excellent \\ \hline (c) & Great deal \\ \hline (d) & Excellent \\ \hline \end{tabular} 6. What would be the output of the following code? string name = "a_b_c; int b= name.size(); cout "The name entered is: "

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!