C Programming - Bitwise Operators - Discussion


Bitwise & and | are unary operators

[A]. True
[B]. False

Answer: Option B


Bitwise & and | are not unary operators only bitwise ! is unary operator.

Lak said: (Aug 24, 2014)  
What is meant by unary operator?

Om Sai Ram said: (Dec 5, 2014)  
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: (Jun 26, 2018)  
But & is address operator and also a unary operator.

Migmar said: (Oct 6, 2018)  
Its a binary operator.

Vivek Kumar Yadav said: (Aug 18, 2019)  
Bitwise & and | are binary operators, Unary means operating on one operand.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.