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?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What if size is zero in the following C statement?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!