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 are data structures in c and how to use them?

669


Explain b+ tree?

618


Explain what is the difference between #include and #include 'file' ?

579


What is scanf () in c?

656


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1125






Do you know the purpose of 'register' keyword?

640


What is the significance of scope resolution operator?

851


When is a “switch” statement preferable over an “if” statement?

639


What is #pragma statements?

583


What does. int *x[](); means ?

631


Write a program to generate the Fibinocci Series

656


Is c is a procedural language?

591


What is the purpose of sprintf() function?

595


Explain how does flowchart help in writing a program?

623


In C programming, how do you insert quote characters (‘ and “) into the output screen?

888