C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - True / False Questions (Q.No. 3)
Bitwise & and | are unary operators
Answer: Option
Bitwise & and | are not unary operators only bitwise ! is unary operator.
5 comments Page 1 of 1.

Lak said:   10 years ago
What is meant by unary operator?

Om Sai ram said:   10 years ago
Unary means operating on one operand. Bitwise & and | needs two operands. For ex: a&b, a|b whereas Bitwise! needs one operand for ex: !a.

Manish said:   6 years ago
But & is address operator and also a unary operator.

Migmar said:   6 years ago
Its a binary operator.

VIVEK KUMAR YADAV said:   5 years ago
Bitwise & and | are binary operators, Unary means operating on one operand.

Post your comments here:

Your comments will be displayed after verification.