31st Oct 2023, 4:00 PM
Satveek Prakash
Satveek Prakash - avatar
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'){
31st Oct 2023, 4:10 PM
Brian
Brian - avatar
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
31st Oct 2023, 4:11 PM
zarifa shaikh
zarifa shaikh - avatar