Computer Science, asked by sanojkusingh, 6 days ago

Question-1
main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}

a) 32
b) 2
c)4
d) none​

Answers

Answered by sharmaraghv54
0

Answer:

option C is correct answer for because they have asked print a percent in 2 echo stops a so that's why the answer

Answered by kumarijyotisp18
0

Answer:

the output will be 32

According to precedence Table

1) + operated very 1st, (4+2=6)

2) then<< (left shift), (2<<6, 2 shifted left side 6 times

= 128)

3) and at last >> (right shift), (128>>2, 128 shifted right

side 2 times = 32)

Similar questions