discover type of a variable
I hope this code is clear enough for you.
#include<iostream>
using namespace std;
main()
{
auto variable = 45;
cout << typeid(variable).name() << endl;
}
I hope this code is clear enough for you.
#include<iostream>
using namespace std;
main()
{
auto variable = 45;
cout << typeid(variable).name() << endl;
}