Q1: Which of the following are unary operators in C?
1. !
2. sizeof
3. ~
4. &&

A 1, 2

B 2,4

C 1,2,4

D 1,3

ANS:D - 1,2,4

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.

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.