cpp get data type code example Example: cpp get data type #include <typeinfo> ... cout << typeid(variable).name() << endl;