0

I tried using typeid(variableName).name() but it only showed up i instead of int, why?

18th Apr 2021, 2:35 PM
Ejingo
Ejingo - avatar
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
18th Apr 2021, 3:01 PM
Shadow
Shadow - avatar