C++ · December 27, 2021 0

C++ atoi()

In C++, the function atoi() is designed to convert characters to integers. If a character is named n, all that is needed to convert it to an integer is:

n = atoi(n);

In other words, the atoi function wraps around the character and changes it to an integer.