When the pointer is NULL, then the function realloc is equivalent to the function ___________

When the pointer is NULL, then the function realloc is equivalent to the function ___________
A. malloc
B. calloc
C. free
D. alloc
 
Answer: a
Explanation: If pointer is NULL, the call to the function realloc is equal to malloc(size), for any value of size. If size is equal to zero, then the pointer is not NULL and the call is equivalent to free(pointer).
 

Tìm kiếm

Back
Top