how to print out the type of a variable in c++ code example
Example: print data type of a variable in c++
int x = 5;
typeid(x).name();
//output: i
// i stands for int
int x = 5;
typeid(x).name();
//output: i
// i stands for int