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 I ++ in c programming?
What does %d do?
What is a spanning Tree?
What are the 4 types of organizational structures?
What is a pointer in c?
What does it mean when the linker says that _end is undefined?
Is using exit() the same as using return?
explain what are pointers?
how to count no of words,characters,lines in a paragraph.
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is 02d in c?
List the difference between a "copy constructor" and a "assignment operator"?
What are the features of the c language?
Do you know the difference between exit() and _exit() function in c?
Explain what is wrong with this program statement?