0
I tried using typeid(variableName).name() but it only showed up i instead of int, why?
2 Réponses
+ 3
The string denoting the type returned by name() is completely implementation defined. The standard doesn't make any specifications about what should be returned for a type, including the built-in data types.
https://en.cppreference.com/w/cpp/types/type_info/name