A

Admin • 833K Points
Coach

Q. What is the correct syntax of if statement in C program?

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

Explanation by: Admin

The correct syntax of if statement in C program is:

if(condition){
// code to be executed
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.