1.

The ~ is ______(a) Quaternary operator(b) Relational Operator(c) Arithmetic Operator(d) Unary OperatorThis question was posed to me in semester exam.My question is based upon Logical Expressions in portion MATLAB Programming of MATLAB

Answer»

Right option is (d) Unary Operator

To explain: ~ 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.



Discussion

No Comment Found

Related InterviewSolutions