L Lê Minh Member Sep 21, 2021 #1 What if size is zero in the following C statement? Code: realloc(ptr, size) A. Allocate a memory location with zero length B. Free the memory pointed to by ptr C. Undefined behaviour D. Doesn’t do any reallocation of ptr i.e. no operation
What if size is zero in the following C statement? Code: realloc(ptr, size) A. Allocate a memory location with zero length B. Free the memory pointed to by ptr C. Undefined behaviour D. Doesn’t do any reallocation of ptr i.e. no operation