Answers for "get type of varaiable in c++"

C++
0

get type of variable in c++

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

c++ variable type

// Example
std::cout << "Data-type = " << typeid(YourVariable).name() << "n";
  
// Syntax
typeid(YourVariable).name()
Posted by: Guest on May-05-2021

Browse Popular Code Answers by Language