i find a problem using atoi() method in ansi c?

Posted by khurshid on Stack Overflow See other posts from Stack Overflow or by khurshid
Published on 2010-04-02T06:43:21Z Indexed on 2010/04/02 7:23 UTC
Read the original article Hit count: 175

Filed under:
|

i have a string initialized by {'\0'} every time i a loop and store some chars in it ranging from 0 to 9 when i convert atoi(temp) where temp="2" it returns me 20 instead of 2 what i have to do to get the accurate values, help required.

© Stack Overflow or respective owner

Related posts about ansi-c

Related posts about c