设有C语句:struct T{int n;double x;}d,*p;,若要使p指向结构体变量中的成员n,正确的赋值语句是()A、p=&d.nB、*p=d.nC、p=(struct T *)&d.nD、p=(struct T *)d.n

题目

设有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

相似考题