[ create a new paste ] login | about

Link: http://codepad.org/nz4G4I2i    [ raw code | output | fork ]

hecomi - C++, pasted on May 22:
1
2
3
4
5
6
7
8
9
10
11
#include <cstdlib>
#include <iostream>

int main()
{
const char* lpczstr = "123456789";
const int num = 987654321;
int ans = num + atoi(lpczstr) + 1;
std::cout << ans << std::endl;
return 0;
}


Output:
1
1111111111


Create a new paste based on this one


Comments: