Using atoi with char

Posted by John Doe on Stack Overflow See other posts from Stack Overflow or by John Doe
Published on 2010-05-26T18:31:42Z Indexed on 2010/05/26 18:51 UTC
Read the original article Hit count: 265

Filed under:
|

Is there a way of converting a char into a string in C?

I'm trying to do so like this:

   char *array;

   array[0] = '1';

   int x = atoi(array);

   printf("%d",x);

© Stack Overflow or respective owner

Related posts about c

    Related posts about atoi