vendredi 2 février 2018

Which is faster if (boolVar) { } else { } or if(!boolVar) { } [on hold]

I have seen lot of questions like

But my question is which of the below is faster? From what little experience I have I assume both are same. Am I right?

if (boolVar) { }
else {
    // code here
}

or

if(!boolVar) {
     // code here
}

Aucun commentaire:

Enregistrer un commentaire