main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / alamuru sreenivasa reddy
2<<4 that means 2 is left shifted by 4 times. then we will get 0010 0000=32 in decimal form. similarly 1>>2 means that is right shifted 2 times we will get 0000 0000=0.. so 0+32=32
i.e answer
| Is This Answer Correct ? | 24 Yes | 10 No |
Post New Answer View All Answers
Why & is used in scanf in c?
What does %c do in c?
Describe wild pointers in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What are derived data types in c?
What are pointers? What are stacks and queues?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What is operator promotion?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is atoi and atof in c?
What are valid signatures for the Main function?
How main function is called in c?
Implement bit Array in C.
what are # pragma staments?
How can I write functions that take a variable number of arguments?