operators

Hi,

This is from sun Ed services sample Que's

Which two are equivalent? (Choose two.)

12>4

12/4

12*4

12>>2

12/2^2

12>>>1

Answer is given that 12/4 and 12>>2 are equivalent. Can anybody explain.

This is from sun Ed services sample Que's

Which two are equivalent? (Choose two.)

12>4

12/4

12*4

12>>2

12/2^2

12>>>1

Answer is given that 12/4 and 12>>2 are equivalent. Can anybody explain.

Do the math and see if you can figure it out. It is basically saying that the result will be the same.

Bill

Bill

in my opinion its 12/4 and 12>>2

because 12 / 4 produces 3 and

12 is 00001100 and when shift produces

00000011

so the result of it is 3 they both produce same result

because 12 / 4 produces 3 and

12 is 00001100 and when shift produces

00000011

so the result of it is 3 they both produce same result

Hi bill and val,

Thank you very much.

Thank you very much.

This thread has been viewed 701 times.

All times above are in ranch (not your local) time.

The current ranch time is

Oct 23, 2018 11:50:34.

The current ranch time is

Oct 23, 2018 11:50:34.