jeudi 17 septembre 2020

Is else...if statement in C equals to else { if }?

My question:

Is this:

if (...) {
  
} else if (...) {
  
}

Equal to this?

if (...) {
  
} else {
  if (...) {
    
  }
}

Indeed, I guess that in the two cases the result would be the same but is else..if a different statement in C ?

Aucun commentaire:

Enregistrer un commentaire