Menu

[solved]-Need Help Question Lot Problems Need C Thank Q39022022

I need help on these question having a lot of problems. Needthem in C++. Thank you!

#10. (Switch statement) For each of the following code segments indicate what is the output. Assume all variables are declare

#11. (Types) For each of the following code segments indicate what is the output. Assume all variables are declared. a. print

#10. (Switch statement) For each of the following code segments indicate what is the output. Assume all variables are declared. a. x= 1; switch (x) case printf (“A”); case printf (“B”); break; case 3: printf (“C”); default: printf (“Z”); b. X= 4; switch (x) case 1: printf (“A”); break; case 2: printf (“B”); default: printf(“Z”); C. X= 2; switch (x) case 1: printf (“A”); case printf (“B”); X= 4; break; case printf(“C”); break; default: printf(“Z”); #11. (Types) For each of the following code segments indicate what is the output. Assume all variables are declared. a. printf(“%d”, 1/3); . printf(“%f”, 1.0/3): o printf(“%d”, 1.0/3): printf(“%f”, 1/3); printf(“%f”, float(1/3)); o 4 printf(“%f”, float(1)/3); printf(“%c”,’3′); h printf (“%d”, ‘3’); Show transcribed image text #10. (Switch statement) For each of the following code segments indicate what is the output. Assume all variables are declared. a. x= 1; switch (x) case printf (“A”); case printf (“B”); break; case 3: printf (“C”); default: printf (“Z”); b. X= 4; switch (x) case 1: printf (“A”); break; case 2: printf (“B”); default: printf(“Z”); C. X= 2; switch (x) case 1: printf (“A”); case printf (“B”); X= 4; break; case printf(“C”); break; default: printf(“Z”);
#11. (Types) For each of the following code segments indicate what is the output. Assume all variables are declared. a. printf(“%d”, 1/3); . printf(“%f”, 1.0/3): o printf(“%d”, 1.0/3): printf(“%f”, 1/3); printf(“%f”, float(1/3)); o 4 printf(“%f”, float(1)/3); printf(“%c”,’3′); h printf (“%d”, ‘3’);

Expert Answer


Answer to I need help on these question having a lot of problems. Need them in C++. Thank you! … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *