Sail E0 Webinar
Question

Which of the following are unary operators in C?
1.    !
2.    sizeof
3.    ~
4.    &&
Options:
A .  1,2
B .  2,3
C .  2,4
D .  1,2,3
Answer: Option D

An operation with only one operand is called unary operation.
Unary operators:
! Logical NOT operator.
~ bitwise NOT operator.
sizeof Size-of operator.


&& Logical AND is a logical operator.


Therefore, 1, 2, 3 are unary operators.




Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers