main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / neha saxena
a=b<<a+b>>2
=2<<4+2>>2
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)
Explanation in Answer No. 5, 6 & 7 are wrong
| Is This Answer Correct ? | 173 Yes | 7 No |
Post New Answer View All Answers
Explain what are binary trees?
why wipro wase
When should the volatile modifier be used?
What are the three constants used in c?
What is extern variable in c with example?
Can you subtract pointers from each other? Why would you?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Difference between strcpy() and memcpy() function?
What is the purpose of the preprocessor directive error?
What is a pointer in c?
What does a function declared as pascal do differently?
Why is event driven programming or procedural programming, better within specific scenario?
Write a program to print numbers from 1 to 100 without using loop in c?
How can I split up a string into whitespace-separated fields?
How are pointers declared in c?