Question: There is something with the coding and i am having an error in these 3 questions. Please help solve them and tell me their output.

4. What is the output of the following code segment when 'choice=1"? (2pts) switch (choice) f case : printf("Hello world "); break; case 1: printf( "Welcome to C++ "); printf("Programming Methodology "); printf("Spring 2021 "); break; default: printf("Good luck "); ) case 2: case 3: 5. What is the output of the following code segment? (2pts) for (int i = 0; i 6. What is the output of the following code segment? (2pts) int i = 0; while (i (10) { if (i -- 5) continue; else if (i = 8) break; printf("1"); 1.1 + 2; >
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
