1.

Consider the following statements in C++ if(mark>=18) cout<<“Passed”; ’ else , cout<<“Failed”; Suggest an operator in C++ using which the same , output can be produced.

Answer»

Conditional operator (?:)



Discussion

No Comment Found

Related InterviewSolutions