I'm getting
PKc
as the output when providing typeid(check).name()
- where check
is a char
variable - as the argument to typeid.name()
#include<bits/stdc++.h>
using namespace std;
main()
{
char check='e';
cout<<typeid(check).name()<<"\n";
cout<<typeid(typeid(check).name()).name();
}
output
c
PKc
Getting it even on changing the type of check
from char
to double
#include<bits/stdc++.h>
using namespace std;
main()
{
double check=69.666;
cout<<typeid(check).name()<<"\n";
cout<<typeid(typeid(check).name()).name();
}
output
d
PKc
P.S. The solution suggested by @AsteroidsWithWings does provide the bare-bones of the underlying concepts but doesn't specifically answers what "PKc" means.