type of a variable in c++ code example
Example 1: c++ variable type
// Example
std::cout << "Data-type = " << typeid(YourVariable).name() << "\n";
// Syntax
typeid(YourVariable).name()
Example 2: define type c++
typedef unsigned int u_int; //giving 'unsigned int' a name of u_int