单项选择题

设已有定义:float x; ,则以下对指针变量p进行定义且赋初值的语句中正确的是()。

A、 float *p=1024;
B、 int*p=(float)x;
C、 float p=&x;
D、 float *p=&x;