#includeIn this code, we create an integer variable `x` and use `typeid` to get a `const std::type_info&` reference which we store in a `ti` variable. We then print out the name of the type using the `name()` method on `ti`. This code uses the standard C++ library.#include int main() { int x = 42; const std::type_info& ti = typeid(x); std::cout << "Type of x is: " << ti.name() << std::endl; return 0; }