c isdigit function
snippet in c

isdigit in c

user1133

#include <stdio.h>
#include <ctype.h>

int main()
{
    char c;
    c='0';
    printf("Result when numeric character is passed: %d", isdigit(c));

    c='+';
    printf("\nResult when non-numeric character is passed: %d", isdigit(c));

    return 0;
}

c isdigit function

user870

isdigit(myChar);

isdigit

user117

Non-zero integer ( x > 0 )	Argument is a numeric character.
Zero (0)	Argument is not a numeric character.