Need help with arduino codeThanks In one or two sentences e

Need help with arduino code!Thanks !

In one or two sentences, explain what the following code does. What is the value of result? int result = ((0 times 34

Solution

Int – Datatype of data which will be returned.

0x34,0x12 – Parameters passed

0x34 binary form is 110100

0x12 binary form is 010010

| operates independently each bit in its two surrounding integer expressions. The bitwise OR of two bits is 1 if either or both of the input bits is 1, otherwise it is 0, as shown below:

    0 | 0 == 0

    0 | 1 == 1

    1 | 0 == 1

    1 | 1 == 1

So, the result is 110110 which in hexadecimal is 0x36

Need help with arduino code!Thanks ! In one or two sentences, explain what the following code does. What is the value of result? int result = ((0 times 34 Solut

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site