單項選擇題

若使P指向包含30個整型元素的動態(tài)數(shù)組空間,則使用的定義語句為()。

A.int*p=newint[30]
B.int*p=newint(30)
C.int*p=new[30]
D.*p=newint[30]

微信掃碼免費搜題