inputs : a , 1Code:#include <stdlib.h> #include <stdio.h> int main(){ long x; scanf("%ld",&x); if(!isdigit(x)) printf("error"); return 0; }
both inputs prints error
if that problems occurs just because its long how can i check a long type if all it's digits are decimal