Answers for "how to get the type of a variable in c++"

C++
2

get type of variable in c++

auto a = 10;
cout << typeid(a) << endl;
Posted by: Guest on December-16-2021
0

how to get the type of a variable in c++

int a = 5;
cout << typeid(a).name() << endl;
Posted by: Guest on April-14-2022

Code answers related to "how to get the type of a variable in c++"

Browse Popular Code Answers by Language