#include <stdio.h> int main() { float a = 5; printf("%d", a); return 0; }
这给出了输出:
0
为什么输出为零?
c printf casting
c ×1
casting ×1
printf ×1