typeid(a).name()
#include <iostream> int main() { int myNum; std::cout << typeid(myNum).name(); return 0; }