atoi() does NOT convert an int to a const char. It converts an const char ARRAY to an int.
So, either you misunderstood the message, misunderstood the line, or wrote the wrong thing for the title.
Given all that, you lose.
atoi() does NOT convert an int to a const char. It converts an const char ARRAY to an int.
So, either you misunderstood the message, misunderstood the line, or wrote the wrong thing for the title.
Given all that, you lose.