#include <typeinfo>
int iii = 100;
printf("%s\n",typeid(iii).name());//型別
詳見:http://www.cnblogs.com/SZxiaochun/p/7691574.html
轉載於:https://www.cnblogs.com/SZxiaochun/p/7692636.html