In my if statement the first condition for && is 0 (false), so the statement 0 && (a++) is equals to 0, right!, then 0==0 it should be true. why am I getting else here? Please explain!
int a=0;
if(0 && (a++)==0)
{
printf("Inside if");
}
else
{
printf("Else");
}
printf("%i",a);
Aucun commentaire:
Enregistrer un commentaire