- 博客(4)
- 收藏
- 关注
原创 指针和数组的赋值时bug
** Warning:assignment makes pointer from integer without a cast ** 我理解的这句话的意思是:赋值使得指针的值来自整型 分别检查“Tarry”和“VersionInformation.Manufactory_mode_0110”的类型 “Tarry”为指针(pointer)类型 VersionInformation.Manufactory_mode_0110为无符号字符型(unsinged char),“四舍五入”为无符号整型(unsig
2022-01-16 01:11:23
407
原创 2021-11-06
联合体(共用体)的一些用法 概念 代码 union MyUnion { u8 all[3]; struct MyStruct { int q ; u8 w : 8; u8 e : 8; }s; }u; u.s.e = 236; u.all[1] = 124; printf("%p, %p\n", &u.all[0], &u.s.q); printf("%d, %d\n", u.all[1], u.s.e); ...
2021-11-07 00:14:15
119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人