CS/CE 218 Quiz #7 17 October, 1991 Name: TA: 1. Given the following c program, answer the following questions. Pay particular attention to the case of the letters in your answers. (Note the line numbers are not part of the program.) 0 #include 1 #define INITIAL 5 2 int main() 3 { 4 int c; 5 6 c = INITIAL / 2; 7 8 switch(c){ 9 case ' ': printf("Hello\n"); 10 break; 11 case '2': printf("World\n"); 12 break; 13 case '3': printf("Hello there world\n"); 14 break; 15 case '4': printf("Hi there world\n"); 16 break; 17 case 2 : printf("hi\n"); 18 case 3 : printf("world\n"); 19 break; 20 default: if((c=15)||(c=10)) 21 printf("what?\n"); 22 else 23 printf("WHAT did you say c was?\n"); 24 break; 25 } 26 return c; 27 } a. (2 pt) What is the value of c after executing line 6? b. (5 pts) What does the program write to standard output? c. (8 pts) What would be the output of the original program, if line 8 were changed to: switch (c += 5){ d. (5 pts) What is exit value returned by the program as modified in part c?