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 is 2 d array in c?
What is difference between constant pointer and constant variable?
What are pointers in C? Give an example where to illustrate their significance.
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is the use of a conditional inclusion statement in C?
What is the significance of an algorithm to C programming?
How do shell structures work?
Does * p ++ increment p or what it points to?
Wt are the Buses in C Language
How do I round numbers?
What is structure in c definition?
What is #define size in c?
Is javascript based on c?
Can an array be an Ivalue?
What do you mean by dynamic memory allocation in c? What functions are used?