A

Admin • 833.24K Points
Coach

Q. Which of these if...else block syntax is correct?

  • (A) if(condition){ } else { }
  • (B) if(condition){ } else(condition){ }
  • (C) if{ } else { }
  • (D) None of these
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

The syntax of if...else block of code in C is:

if(condition){
// true block
}
else {
// false block
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.