Answers for "how to find value's data type in c++"

C++
2

cpp get data type

#include <typeinfo>
...
cout << typeid(variable).name() << endl;
Posted by: Guest on February-12-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