当前位置: X题卡 > 所有题目 > 题目详情

设有以下定义: struck sk int a; float b; data; int *p; 若要使p指向data中的a域,正确的赋值语句是( )。

查看本题答案

你可能感兴趣的试题

p=&a;  p=data.a;  p=&data.a;  *p=data.a;  
p=&data.n;  *p=data.n;  p=(struct sk*)&data.n;  p=(struct sk*)data.n:  
p=&data.n; *p=data.n;  p=(struct sk*) &data.n; p=(struct sk*)data.n;  
p=&a;  p=data;  p=&data,  *p=data;  
p=&a;  p=data;  p=&data;  *p=data;  
p=&a;  p=data.a;  p=&data.a;  *p=data.a;  
p=&datn;  *p=datn;  p=(struct sk*)&datn;  p=(struct sk*)datn;  
p=&a;  p=data.a;  p=&data.a;  *p=data.a;  
q=&data.m;  *q=data.m;  q=(struct sk*)&data.m;  q=(struct sk*)data.m;  
p=&a;  p=data.a;  p=&data.a;  *p=data.a;  
p=&data.n;  *p=data.n;  p=(struct sk*)&data.n;  p=(struct sk*)data.n;  
q=&data.m;  *q=data.m;  q=(struct sk*)&data.m;  q=(struct sk*)data.m;  
p=&a;  p=data.a;  p=&data.a,  *p=data.a;  
q=&data.m;  *q=data.m;  q=(struct sk*)&data.m;  q=(struct sk*)data.m;  
p=&a;  p=data.a;  p=&data.a;  *p=data.a;  
P=&data.n;  *P=data.n;  P=(struct sk*)&data.n;  P=(struct sk,)data.n;  
(* p).data  (* p).a  p->data  data. a  
p=&datn;  *p=datn;  p=(struct sk*)&datn;  p=(struct sk*)datn:  

热门试题

更多