isdigit how it works in C code example
Example 1: !isdigit c
#include <stdio.h>
#include <ctype.h>
int main()
{
char c;
printf("Enter a character: ");
scanf("%c",&c);
if (isdigit(c) == 0)
printf("%c is not a digit.",c);
else
printf("%c is a digit.",c);
return 0;
}
Example 2: c isdigit function
isdigit(myChar);