Consider the function call: p = (data_t *)malloc((num - 1) * sizeof(data_t)) The intention of this function call is best described as:单项选择题

A

The pointer p, which already points at an array of num elements of type data_t, is being altered so that it now points at an array of num – 1 elements

B

The pointer p is being assigned the address of a new array that has space to store num – 1 elements each of type data_t

C

The pointer p is being converted from its previous type to now be of type "pointer to data_t"

D

The pointer p is being checked to make sure that the array it already points at contains space for at least num elements each of type data_t

E

The pointer p is being assigned the address of a new array that has space to store num + 1 elements each of type data_t

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!