I currently have 2 methods to do the above. Which one is better, and why?
int i = 1; if (i != 0) { //.... }
if (i) { //... }
Which one of these is better to check for a nuber being 0, and why?
Aucun commentaire:
Enregistrer un commentaire