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 ?    79 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parts of c program?

827


What is external variable in c?

784


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

814


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1557


What are structure members?

800






What is #line used for?

757


What is typedef example?

823


what is use of malloc and calloc?

1616


How can you access memory located at a certain address?

835


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2559


What is the meaning of 2d in c?

804


What is pre-emptive data structure and explain it with example?

3451


differentiate built-in functions and user – defined functions.

844


how many errors in c explain deply

1809


Differentiate between null and void pointers.

849