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
explain what are actual arguments?
Can a variable be both static and volatile in c?
What is difference between function overloading and operator overloading?
Explain setjmp()?
What is logical error?
can we implement multi-threads in c.
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Why should I use standard library functions instead of writing my own?
What is the difference between struct and typedef struct in c?
What is difference between structure and union in c?
What is the newline escape sequence?
What is clrscr ()?
Difference between pass by reference and pass by value?
What is derived datatype in c?
Explain argument and its types.