Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:45:29
Multiple Choices
(Choose 1 answer)
int a = 5, b = 2;
What is the output when the sample code below is executed?
switch(a+b) {
case 1: break;
case 2: b = a; break;
default: b = -1; a = 4;
}
printf("%d %d",a,b);
A. 4 -1
B. 5 2
C. 5 5
D. 5-1