Sorry for the long title! What I want to know is whether it's possible to convert specified elements of array of char to int using some fuction ?
let's say we have char x,
x = '9', x = '2'
so I want to have 92 in a single integer variable, is that possible?
or should I copy both elements(extract) to another array of char that consists of 2 elements only then use a function?
what I'm doin right now is subtracting '0' from each element then multiplying it to a variable that has initial value of 1 and gets increased every dealing with each element by *10.