samedi 17 juin 2017

what does if(i-2) mean in c language?

So,I understand everything in code except this if statement if(i-2):

for (i = -1, j = 0; i < 4; i++, j++)
    if (i - 2) 
       printf("%d\t", j * (i + 2));

Can anyone explain meaning of this if statement,does it have any influence on printf?Thanks

Aucun commentaire:

Enregistrer un commentaire