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
What are the parts of c program?
What is external variable in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
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);
What are structure members?
What is #line used for?
What is typedef example?
what is use of malloc and calloc?
How can you access memory located at a certain address?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is the meaning of 2d in c?
What is pre-emptive data structure and explain it with example?
differentiate built-in functions and user – defined functions.
how many errors in c explain deply
Differentiate between null and void pointers.