struct
{
Uint32 oneval;
Uint32 twoval;
} mydata_t;
Uint32 *valptr;
mydata_t astruct;
valptr = &asturct.twoval;
valptr = &(astruct.twoval);
其中哪一个给出了一个指向twoval的Uint32指针?
答案 0 :(得分:0)
请参阅http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence
他们都像"。"优先级高于"&"