Answers for "how to find values data type in c++"

C++
0

c++ get data type

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

how to know datatype of something in c++

int k;
cout << typeid(k).name() << endl;
Posted by: Guest on January-10-2021

Browse Popular Code Answers by Language