[ create a new paste ] login | about

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

C++, pasted on Oct 2:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <typeinfo>

using namespace std;

int main()
{
	short x = 10;
	char y = 20;
	cout << typeid((short)x + (char)y).name() << endl;
	return 0;
}


Output:
1
i


Create a new paste based on this one


Comments: