Is atoi safe?
Answer / Shailendra Kumar Verma
atoi() (or atoll()) is a library function in C and C++ for converting strings to integers. It's not considered safe because it doesn't perform range checks or handle leading whitespace, sign inconsistencies, invalid characters, or overflow situations.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the five types of inheritance in C++?
What is the difference between method and message?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
what you know about c++?
What is a block in c++?
How is data hiding achieved in c++?
Is java easier than c++?
Give example of a pure virtual function in c++?
What are the classes in c++?
a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?
What is the use of this pointer in c++?
Explain what are mutator methods in c++?