Exercise 2.9.1. Switch Statement Code Tracing.
What is printed by the following code fragment?
#include <stdio.h>
void test1(int a) {
switch(a) {
case 1:
printf("%d ", a);
break;
case 2:
printf("%d ", a);
break;
case 3:
printf("%d ", a);
break;
}
}
int main(void) {
test1(1);
return 0;
}