1.

The if..else statement can be replaced by which operator?(a) Bitwise operator(b) Conditional operator(c) Multiplicative operator(d) Addition operatorI had been asked this question by my college director while I was bunking the class.The question is from Statements topic in portion Functions, Namespaces & Exceptions in C++ of C++

Answer»

Correct OPTION is (b) CONDITIONAL OPERATOR

Explanation: In the conditional operator, it will predicate the OUTPUT USING the given condition.



Discussion

No Comment Found

Related InterviewSolutions