1#include <stdio.h>
2#include <ctype.h>
3
4int main()
5{
6 char c;
7 c='0';
8 printf("Result when numeric character is passed: %d", isdigit(c));
9
10 c='+';
11 printf("\nResult when non-numeric character is passed: %d", isdigit(c));
12
13 return 0;
14}
15
1Non-zero integer ( x > 0 ) Argument is a numeric character.
2Zero (0) Argument is not a numeric character.