+ 2
Can anyone explain if...else condition.
After if there comes elseif or elif or something else
5 Antworten
+ 3
in c++, there is no elif keyword.
And else if is just a nesting if condition in else..
SO There is only if and if else.
And other is nesting of if or if-else...
Need to use proper braces to tell, which if or else belong to which one if-else statements in nesting if else..
In this thread see nesting if else topic..
https://www.sololearn.com/learn/CPlusPlus/1613/?ref=app
+ 2
Languages might be different but they behave the same in all of them.
https://www.sololearn.com/learn/C/2923/
https://www.sololearn.com/learn/CPlusPlus/1612/
https://www.sololearn.com/learn/Java/2143/
+ 2
No I asked what comes after if and before else. Is it elseif or elif .
Just confirm me that.
+ 2
Ok Thanks Jayakrishna
0
Either...
Nothing
else
Or else if