0
2 Answers
+ 7
Numeric characters in C are stored in memory as ASCII codes. (ASCII is the American Standard Codes for Information Interchange). The ASCII codes for '0' through '9' are 48 through 57.
So to check for numeric characters you may compare with the integer value range 48 to 57:
if(ch>=48 && ch<=57){
Or for better clarity, compare with the characters in single quotes, and let the compiler substitute the ASCII codes for you:
if(ch>='0' && ch<='9'){
0
It's true i can help you my guy
So how to do it you have an error solve it in google Or i will tell my tutor đšâđ« to help you