main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / neha saxena
a=b<<a+b>>2
=2<<4+2>>2
According to precedence Table
1) + operated very 1st, (4+2=6)
2) then<< (left shift), (2<<6, 2 shifted left side 6 times
= 128)
3) and at last >> (right shift), (128>>2, 128 shifted right
side 2 times = 32)
Explanation in Answer No. 5, 6 & 7 are wrong
| Is This Answer Correct ? | 173 Yes | 7 No |
Post New Answer View All Answers
What is a wrapper function in c?
Write a program to print “hello world” without using semicolon?
What is the purpose of the preprocessor directive error?
What is variable and explain rules to declare variable in c?
How many bytes is a struct in c?
Can a void pointer point to a function?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Describe the difference between = and == symbols in c programming?
Is swift based on c?
What does 2n 4c mean?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What are the types of data files?
What are the advantages of Macro over function?
Define and explain about ! Operator?
How do you write a program which produces its own source code as output?