1.

What is the name of the ~ operator?(a) Bitwise NOT(b) Logical NOT(c) Bitwise SHIFT(d) Pointer AddressI have been asked this question in my homework.This interesting question is from Operators in chapter Arduino Programming of Arduino

Answer»

Correct choice is (a) Bitwise NOT

To explain I would say: The ~ operator is used to PERFORM a bitwise NOT operation on any TWO numbers which serve as the OPERANDS. It performs a NOT operation on each bit starting from the most SIGNIFICANT bit to the least significant bit.



Discussion

No Comment Found

Related InterviewSolutions