how to get the typeof a variable in c++ code example
Example 1: c++ how to check type of variable
typeid(variable).name()
Example 2: print data type of a variable in c++
int x = 5;
typeid(x).name();
//output: i
// i stands for int
Example 3: c++ typeof
typeof (int *)