+ 2

Can anyone explain if...else condition.

After if there comes elseif or elif or something else

4th Jan 2020, 5:29 AM
Tanmay Gupta
Tanmay Gupta - avatar
5 odpowiedzi
+ 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
4th Jan 2020, 8:21 AM
Jayakrishna 🇮🇳
4th Jan 2020, 5:37 AM
Avinesh
Avinesh - avatar
+ 2
No I asked what comes after if and before else. Is it elseif or elif . Just confirm me that.
4th Jan 2020, 7:06 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 2
Ok Thanks Jayakrishna
4th Jan 2020, 11:26 AM
Tanmay Gupta
Tanmay Gupta - avatar
0
Either... Nothing else Or else if
4th Jan 2020, 7:29 PM
Michele
Michele - avatar