设有下列定义:struct sk{ int m; float x; }data,
题型:单项选择题
问题:
设有下列定义:struct sk{ int m; float x; }data,*q;若要使q指向data中的m域,正确的赋值语句是( )。
A.q=&datm;
B.q=datm;
C.q=(struct sk*)&datm;
D.q=(struct sk*)datm;
设有下列定义:struct sk{ int m; float x; }data,*q;若要使q指向data中的m域,正确的赋值语句是( )。
A.q=&datm;
B.q=datm;
C.q=(struct sk*)&datm;
D.q=(struct sk*)datm;