評價: 0 回應: 0 閱覽: 66
置頂

printf type of value

請問在c底下我要怎麼print出我變數的type

例如說

int a;
float b;
char c;

我希望能print出

typeof(a)=int;
typeof(b)=float;
typeof(c)=char;

可是typeof很像不能這樣用?

會員登入 (先登入會員才能回覆留言喔!)

Facebook留言