πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) if(condition){ }

Explanation: The correct syntax of if statement in C program is:

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

Explanation by: Kanak Sharma
The correct syntax of if statement in C program is:

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
211
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
81%
Success Rate