单选题 设已有定义:float x;,则以下对指针变量p进行定义且赋初值的语句中正确的是( )。
A.float *p=1024; B.int *p= (float)x;
C.floatp=&x; D.float *p= &x;

【正确答案】 D
【答案解析】