Typ eines Objekts in gcc/g++/c++ ermitteln

int a;
cout << "type of a is:" << typeid(a).name();

https://en.cppreference.com/w/cpp/language/typeid

Comments are closed.