samedi 1 octobre 2016

What's the difference between if(varName) and if(varName!=NULL)?

What's the difference between this:

if( varName != NULL ){
  // Do something
}

And:

if( varName ){
 // Do something
}  

I mean, is there a difference in terms of process speed? Or is only a better performance?

PD: I'm working with C.

Aucun commentaire:

Enregistrer un commentaire