main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / satya
yes , the output will be 32....
<< and >> are bitwise operators... not relational ops..
reason:
<< means left shift operator..
>> means right shift operator..
for example.. if we give 2>>1
binary number for 2 is 0000 0010
the operator is right shift..so 0000 0001
for example.. if we give 2<<1
binary number for 2 is 0000 0010
the operator is left shift..so 0000 0100
go through this u will get the output...
Is This Answer Correct ? | 78 Yes | 10 No |
Post New Answer View All Answers
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Why does everyone say not to use scanf? What should I use instead?
What is #line in c?
What is s in c?
What is the benefit of using const for declaring constants?
What’s a signal? Explain what do I use signals for?
Explain how can I right-justify a string?
Write a program to generate the Fibinocci Series
Did c have any year 2000 problems?
How do you generate random numbers in C?
How can I find out the size of a file, prior to reading it in?
Can static variables be declared in a header file?
Is c still used?
How does placing some code lines between the comment symbol help in debugging the code?