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
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Write a program to print fibonacci series using recursion?
What does sizeof int return?
What is a struct c#?
What is the meaning of && in c?
What are actual arguments?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the purpose of clrscr () printf () and getch ()?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Combinations of fibanocci prime series
Can we use visual studio for c?
What is the benefit of using const for declaring constants?
Explain the process of converting a Tree into a Binary Tree.
What are disadvantages of C language.
Explain what are binary trees?