c++ get type name of type code example
Example: c++ get type name of object
#include <iostream>
int main() {
int myNum;
std::cout << typeid(myNum).name();
return 0;
}
#include <iostream>
int main() {
int myNum;
std::cout << typeid(myNum).name();
return 0;
}