例如,假设我们有一个联盟
typedef union {
unsigned long U32;
float f;
}U_U32_F;
Run Code Online (Sandbox Code Playgroud)
声明此union类型的变量时,有没有办法设置初始值?
U_U32_F u = 0xffffffff; // Does not work...is there a correct syntax for this?
Run Code Online (Sandbox Code Playgroud)