samedi 12 novembre 2016

In C, why if(sizeof(int)>-1) gives false output? [duplicate]

if(sizeof(int)>-1)
{
printf("0");
}
else
{
printf("else");
}

it executes the else statement. Why doesnt it follow the if part even if int size>-1.

Aucun commentaire:

Enregistrer un commentaire