I have a problem in converting char to integer. My code is as follow:
char lang [2][4] ={"en","fr"};
char ch = lang[0][0];
int i = sprintf("%d",ch); //want to get integer value of 'e' in string "en"
ch = lang[0][1];
int j = sprintf("%d",ch);
The error is "sprintf cannot accept parameter 2 from const char*to char".
pls help me.
Thanks.
Rgds,
su