單項選擇題

用calloc函數創(chuàng)建具有10個整型元素的一維數組的正確語句是()。

A.int *p=calloc(10,2);
B.int *p=calloc(10);
C.int *p=calloc(10,4);
D.int *p=malloc(10)

微信掃碼免費搜題