fork download
  1. #include<iostream>
  2. #include<typeinfo>
  3.  
  4. int main(){
  5. using namespace std;
  6.  
  7. cout << typeid(int).name() << endl;
  8. cout << typeid(short).name() << endl;
  9. cout << typeid(long).name() << endl;
  10. cout << typeid(long long).name() << endl;
  11. cout << typeid(char).name() << endl;
  12. cout << typeid(unsigned).name() << endl;
  13. cout << typeid(float).name() << endl;
  14. cout << typeid(double).name() << endl;
  15. cout << typeid(short int).name() << endl;
  16. cout << typeid(long int).name() << endl;
  17. cout << typeid(unsigned char).name() << endl;
  18. cout << typeid(unsigned short).name() << endl;
  19. cout << typeid(unsigned long long).name() << endl;
  20. cout << typeid(long double).name() << endl;
  21. return 0;
  22. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
i
s
l
x
c
j
f
d
s
l
h
t
y
e