單項選擇題

設有C語句:struct T{int n;double x;}d,*p;,若要使p指向結構體變量中的成員n,正確的賦值語句是()

A.p=&d.n
B.*p=d.n
C.p=(struct T *)&d.n
D.p=(struct T *)d.n

微信掃碼免費搜題