Multiple choice

What is the role of 'atoi' function in C language?

  1. This function is used to convert the integer into float type.

  2. This method is used to convert the string of digits into the corresponding integer.

  3. This method is used to convert a string into an integer.

  4. This method is used to convert the characters into string format.

  5. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is true about ''atoi' function in C language.