In what way is atoi() and stoi() different from each other.
Cpp doubts in geenral
First, atoi () converts C strings (null-terminated character arrays) to an integer, while stoi () converts the C++ string to an integer. Second, the atoi () function will silently fail if the string is not convertible to an int , while the stoi () function will simply throw an exception.
ok understood.CAn u solve my other doubts too which i asked in the morning and have not got any response it
If assigned TA is not responding to your posted doubt. You can reopen it anytime. For that you have to first mark that as resolved and then reopen it. Or might be there’s a reopen button too. You can do it whenever you like.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.