Joined
Last Seen
-1 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.84K
1 Posted Topic
The atoi() function converts the string pointed to by ptr to an int. [CODE] #include<iostream> #include<cstdlib> using namespace std; int main(void) { char q = '2'; cout << atoi("2") << endl; cout << atoi(&q) << endl; return 0; } [/CODE] result: 2 20
The End.
pwl