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 are data structures in c and how to use them?
Explain b+ tree?
Explain what is the difference between #include and #include 'file' ?
What is scanf () in c?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Do you know the purpose of 'register' keyword?
What is the significance of scope resolution operator?
When is a “switch” statement preferable over an “if” statement?
What is #pragma statements?
What does. int *x[](); means ?
Write a program to generate the Fibinocci Series
Is c is a procedural language?
What is the purpose of sprintf() function?
Explain how does flowchart help in writing a program?
In C programming, how do you insert quote characters (‘ and “) into the output screen?