单项选择题

若有说明语句:double *p,a;则能通过scanf语句正确给输入项读入数据的程序段是()

A.*p=&a;scanf(“%lf”,p)
B.*p=&a;scanf(“%lf”,*p)
C.p=&a,scanf(“%lf”,*p)
D.p=&a;scanf(“%lf”,p)