type of cpp 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: c++ typeof
typeof (int *)
int x = 5;
typeid(x).name();
//output: i
// i stands for int
typeof (int *)