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);
How about:
char arr[] = "X";
int x;
arr[0] = '9';
x = atoi(arr);
printf("%d",x);