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; }
1
i