+ 1

what we have to do in else statement

26th Mar 2017, 5:27 PM
Aayush
Aayush - avatar
4 Answers
+ 19
We have to write the code to be executed if the condition of if() statement is false. if(a==0){ cout<<"zero"; } else{ cout<<"non-zero"; }
26th Mar 2017, 5:55 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 9
The code to be executed in case the if condition is false.
26th Mar 2017, 5:52 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 2
tnx to all for helping me
27th Mar 2017, 9:10 AM
Aayush
Aayush - avatar
0
Else is statement which is executed when all the if statements goes wrong.
26th Mar 2017, 5:55 PM
Siddharth Upadhyay
Siddharth Upadhyay - avatar