vendredi 6 mars 2020

Error message: if the number is not integer but float

Why the error does not occur when I put a float number?

int m;
if(scanf("%d%",&m)!=1)
{
    printf("Error\n");
    exit(1);
}

Aucun commentaire:

Enregistrer un commentaire