If you want a char
variable, use a char
variable, don’t use a char
array.
Change
char i[] = pop();
to
char i = pop();
and likewise.
That said, atoi()
won’t be relevant there. If you want the result to be of type int
, simply use an int
variable.
solved I want to convert a char (popped from the stack) to integer [closed]