If you want to test a condition and execute a single statement in case it's true, you can use an if statement without the ______ brackets.

  • braces
  • curly brackets
  • parentheses
  • semicolons
If you want to test a condition and execute a single statement in C++, you can use an if statement without the curly brackets (braces). This is known as a single-line if statement. However, it's essential to note that it can only execute one statement, and the use of curly brackets is recommended for clarity and maintainability.
Add your answer
Loading...

Leave a comment

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