[ create a new paste ] login | about

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

C++, pasted on Mar 23:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;

int main()
{
	int x = 12345;
	char c = x;

	cout << static_cast<int>(c) << endl;

	return 0;
}


Output:
1
57


Create a new paste based on this one


Comments: