The ~ is ______

The ~ is ______
A. Quaternary operator
B. Relational Operator
C. Arithmetic Operator
D. Unary Operator
 
Answer: d
Explanation: ~ is a unary operator since the NOT function operates on only one operand. It isn’t a relational operator since it doesn’t do any comparison and it’s not an arithmetic operator since it doesn’t perform any arithmetic operation.
 

Tìm kiếm

Back
Top