// Example std::cout << "Data-type = " << typeid(YourVariable).name() << " "; // Syntax typeid(YourVariable).name()