单项选择题

下列有关指针的用法中,错误的是( )。

A.int i;int *p=&i;
B.int i;int *p;i=*p;
C.int *p;p=0;
D.int i=5;int *p;p=&i;