str[ch-‘0’]; can anyone explain the meaning of these line why we not take str[ch];
Smart Keypad problem
for ch = ‘1’ if you simple take str[ch] that refers to str[49] but if you do str[ch-‘0’] it means str[1]
str[ch-‘0’]; can anyone explain the meaning of these line why we not take str[ch];
for ch = ‘1’ if you simple take str[ch] that refers to str[49] but if you do str[ch-‘0’] it means str[1]