main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / sanjay bhosale
statement a=b<<a + b>>2;
will be treated as
a=(b<<(a+b))>>2;
and gives output 32.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of using Unions?
What is the significance of an algorithm to C programming?
What is a double c?
How main function is called in c?
Why is c so powerful?
Do you know the difference between exit() and _exit() function in c?
What is string in c language?
What is the size of empty structure in c?
What is the data segment that is followed by c?
What is the scope of global variable in c?
Why c is a mother language?
What is the use of function overloading in C?
How can I trap or ignore keyboard interrupts like control-c?
Can we change the value of constant variable in c?
What is use of #include in c?