#include<iostream>
using namespace std;
main()
{
auto variable = 45;
cout << typeid(variable).name() << endl;
}
// Example
std::cout << "Data-type = " << typeid(YourVariable).name() << "
";
// Syntax
typeid(YourVariable).name()
typedef unsigned int u_int; //giving 'unsigned int' a name of u_int
typedef [type] [name_of variable]