mercredi 31 août 2016

About if else staetment

here is the code!

code1 :

if(false) {
    //1000 lines of code
}
else {
    //1 line of code
}

code2 :

if(false) {
    //1 line of code
}
else {
    //1 line of code
}

what will be the process time of above two codes? Also please try to explain...

Aucun commentaire:

Enregistrer un commentaire