Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- #include <stdio.h>
- #include <stdlib.h>
- using namespace std;
- int main()
- {
- char s1[]= "123kj";
- int x;
- x = atoi(s1);
- cout << x+1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment