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.

These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?

Rocket Oven Kickstarter - from the trailboss

https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
This thread has been viewed 688 times.

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

The current ranch time is

Jul 19, 2018 07:42:36.

The current ranch time is

Jul 19, 2018 07:42:36.