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 size of structure pointer in c?
what is the role you expect in software industry?
What is the difference between memcpy and memmove?
What is wrong with this program statement? void = 10;
What are dangling pointers? How are dangling pointers different from memory leaks?
What is fflush() function?
Can variables be declared anywhere in c?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is the process of writing the null pointer?
Does free set pointer to null?
What is the use of pragma in embedded c?
How can I do serial ("comm") port I/O?
Explain a file operation in C with an example.
What is #define in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same