289 views
0 votes
0 votes
a << 1 is equivalent to

multiplying a  by 2,

dividing a by 2,

adding 2 to a

none

1 Answer

0 votes
0 votes

The left shift operator equivalent to multiply by 2,and right shift operator equivalent to division by 2.

So option (A) is correct.   

Related questions

1.4k
views
0 answers
0 votes
sushmita asked Dec 3, 2017
1,405 views
static char hello[]='hello'; printf("%s",hello);The output will be same as-puts("hello");puts(hello);printf("%s", "hello");puts("hello\n");Answer is 1,2 and 3.Can anyone ...
844
views
1 answers
1 votes
sushmita asked Dec 3, 2017
844 views
If n has the value 3 then output of the following statementprintf ("%d %d",n++,++n); isa 3 5b 4 5c 4 4d Compiler dependentI think it will be 3,5 because comma operator is...
753
views
1 answers
0 votes
sripo asked Dec 11, 2018
753 views
Is Timothy Williams book good for GATE preparation?
1.5k
views
0 answers
0 votes
DEEPAK PANDEY 1 asked Apr 10, 2018
1,507 views
A byte addressable computer has a memory capacity of 2^m kbytes and can perform 2^n operations. An instruction involving 3 operands and one operator needs a maximum of -...