0

How work operator if

15th Jan 2018, 5:56 AM
HpLow
HpLow - avatar
2 Answers
+ 4
The if statement is used to execute some code if a condition is true. Syntax: if(condition) { //statements } The condition specifies which expression is to be evaluated. If the condition is true, the statements in the curly brackets are executed. If the condition is false, the statements are simply ignored, and the program continues to run after the if statements body. Source: C++ Courses
15th Jan 2018, 6:36 AM
Al Toe
+ 2
if(condition ){ //code }
15th Jan 2018, 6:10 AM
MOHIT JADAV
MOHIT JADAV - avatar