how to print the type of datatype in c++ code example
Example 1: print data type of a variable in c++
int x = 5;
typeid(x).name();
//output: i
// i stands for int
Example 2: how to know datatype of something in c++
int k;
cout << typeid(k).name() << endl;