Answers for "how to know a type of a numbe in c"

0

how to know a type of a numbe in c

int num;
char term;
if(scanf("%d%c", &num, &term) != 2 || term != '\n')
    printf("failure\n");
else
    printf("valid integer followed by enter key\n");
Posted by: Guest on April-02-2021

Code answers related to "how to know a type of a numbe in c"

Browse Popular Code Answers by Language