+ 1
what is if(condition)
7 Answers
+ 5
if contain true then result other wise else or else if or we can check only for if
+ 1
if(condition)
{
statements...
}
this is the syntax of conditional if loop..
if the condition is true(1 in binary), then statements executed within curly braces.
if the condition is false(0 in binary),then code under curly braces is ignored by compiler.
+ 1
If conditon only executes when the given condition is true.
0
if condition return any value other than 0 than the if statement is executed else not
0
if(10==10){
cout << "this command will show up << endl
}
if(6==10){
this will not activate
}
0
if mean if this is true then execute{ true}
else execute{ false }
0
The command in if statement will only excute when the condition is true