Check out example codes for "c check if char is number". It will help you in understanding the concepts better.

Code Example 1

char c = 'a'; // or whatever

if (isalpha(c)) {
    puts("it's a letter");
} else if (isdigit(c)) {
    puts("it's a digit");
} else {
    puts("something else?");
}

Learn ReactJs, React Native from akashmittal.com