This commit is contained in:
ranwenjie
2021-08-17 17:39:37 +08:00
parent 136b59671d
commit 1841228814
57 changed files with 15 additions and 21 deletions
+16
View File
@@ -0,0 +1,16 @@
// FROM:http://www.gowrikumar.com/c/
#include <stdio.h>
int main()
{
float a = 12.5;
printf("%d\n", a);
//printf("%d\n", *(int *)&a);
return 0;
}
// 浮点数 转 整形 ,用强制转换(int)a
/*
浮点数的存储
*/