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


Please Help Members By Posting Answers For Below Questions

Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

654


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.

4487


Why does everyone say not to use scanf? What should I use instead?

678


What is #line in c?

559


What is s in c?

607






What is the benefit of using const for declaring constants?

581


What’s a signal? Explain what do I use signals for?

603


Explain how can I right-justify a string?

618


Write a program to generate the Fibinocci Series

656


Did c have any year 2000 problems?

649


How do you generate random numbers in C?

651


How can I find out the size of a file, prior to reading it in?

616


Can static variables be declared in a header file?

612


Is c still used?

598


How does placing some code lines between the comment symbol help in debugging the code?

541