You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cout << "Value of : " << str << " is :- " << n << endl;
}
}
/* Program Description:
*) Syntax of atoi:-
int atoi(const char *str);
This method takes one c string or char* and returns its integer equivalent
Here, we have one string array. Using one for loop, we are iterating through the elements of this array and printing out the integer value of each value.
Note that it only considers the integral part of the number.