单选题

下列选项中,能够正确进行动态存储分配的是

A.

int p=new int;

B.

int p=new int (10);

C.

int *p=new int(10);

D.

int p[]=new int [10];

发表评论

登录 后再回复