以下程序段完全正确的是( )。
·int *p; scanf("%d",&p);
·int *p; scanf("%d",p);
·int k, *p=&k; scanf("%d",p);
·int k, *p; *p=&k; scanf("%d",p);
出自:西南石油大学石油技术经济学