Check out example codes for "c isdigit function". It will help you in understanding the concepts better.

Code Example 1

isdigit(myChar);

Code Example 2

#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;
}

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com