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
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
can we implement multi-threads in c.
In a header file whether functions are declared or defined?
Is c is a high level language?
I need a sort of an approximate strcmp routine?
What is register variable in c language?
Why is c faster?
What is the meaning of ?
What is call by reference in functions?
What is strcpy() function?
What is the difference between void main and main in c?
How do we open a binary file in Read/Write mode in C?
What are the different types of pointers used in c language?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?