Question 41
Answer saved
Marked out of 1.00
What is the output when the sample code below is executed?
1
2
3
#include<stdio.h>
#include<string.h>
#include<conio.h>
4
int main()
5{
6
int a=5,b=2;
7日
8
9
switch(a+b){
case 1: break;
case 2:b=a; break;
10
11
default: b=-1; a=4;
}
printf("%d %d",a,b);
12
13
return 0;
14}
a. 5-1
Ob. 52
c. 4-1
Od. 55
Clear my choice