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


Please Help Members By Posting Answers For Below Questions

What is I ++ in c programming?

835


What does %d do?

930


What is a spanning Tree?

1207


What are the 4 types of organizational structures?

791


What is a pointer in c?

944






What does it mean when the linker says that _end is undefined?

836


Is using exit() the same as using return?

894


explain what are pointers?

780


how to count no of words,characters,lines in a paragraph.

4120


Discuss the function of conditional operator, size of operator and comma operator with examples.

859


What is 02d in c?

816


List the difference between a "copy constructor" and a "assignment operator"?

760


What are the features of the c language?

825


Do you know the difference between exit() and _exit() function in c?

786


Explain what is wrong with this program statement?

836