How does atoi function work?



How does atoi function work?..

Answer / Krete Mishra

The atoi() function in C++ converts a string (character array) to an integer. It takes a character pointer as input and returns the converted integer value. For example, "atoi("123")" would return 123.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How to declare a function pointer?

1 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

1 Answers  


What is input operator in c++?

1 Answers  


What is the use of ::(scope resolution operator)?

1 Answers  


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

1 Answers  


what is the emaning of '#include" "'?

5 Answers  


What kind of problems can be solved by a namespace?

1 Answers  


What is a tuple c++?

1 Answers  


What are the static members and static member functions?

1 Answers  


How important is c++?

1 Answers  


How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)

2 Answers  


What are the advantages and disadvantages of using inline and const?

2 Answers   Polaris, TCS, Zimmer Biomet,


Categories