单项选择题

对于下面程序,对p进行赋值正确的是( )。
class A
public:fun(int i)cout<<i<<endl;

main()
void(A::*p)(int);

A.p=fun;
B.p=fun();
C.p=A::fun;
D.p=A::fun()