Which C++ statement is used to make a single conditional decision?

  • for loop
  • if statement
  • switch statement
  • while loop
The 'if' statement in C++ is used to make a single conditional decision. It allows you to execute a block of code only if a specified condition is true. This is fundamental for controlling the flow of your program based on conditions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *