Which of the following statement can replace the if-else statement?

82. Which of the following statement can replace the if-else statement?

  1. while loop
  2. do-while loop
  3. for loop
  4. conditional operator

Answer: D) conditional operator

Explanation:

In C++, we can replace if-else statements using conditional operators.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.