Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to know a type of a numbe in c

int num;
char term;
if(scanf("%d%c", &num, &term) != 2 || term != '
')
    printf("failure
");
else
    printf("valid integer followed by enter key
");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #type #numbe
ADD COMMENT
Topic
Name
6+2 =