main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / sandeep kumar
Both shift operator has same precedence but associativity left to right so first calculate b>>2=0 then calculate b<<4=32 then add the both result
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the best organizational structure?
plz let me know how to become a telecom protocol tester. thank you.
Tell me what is the purpose of 'register' keyword in c language?
Does * p ++ increment p or what it points to?
What is void main () in c?
What are called c variables?
What is an endless loop?
What is return in c programming?
what are bit fields? What is the use of bit fields in a structure declaration?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
swap 2 numbers without using third variable?
Tell us the use of fflush() function in c language?
How does pointer work in c?
What is the code in while loop that returns the output of given code?