The ________ statement in C is used to execute a block of code only when a specific condition is true.

  • For Loop
  • While Loop
  • If Statement
  • Do-While Loop
The correct option is (c) If Statement. In C, the 'if' statement is used to execute a block of code only when a specific condition is true. If the condition is false, the code inside the 'if' block is skipped.
Add your answer
Loading...

Leave a comment

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