Home » C Programming » Storage Classes » Question
  1. What if size is zero in the following C statement?
    realloc(ptr, size)
    1. Doesn’t do any reallocation of ptr i.e. no operation
    2. Undefined behaviour
    3. Allocate a memory location with zero length
    4. Free the memory pointed to by ptr
    5. None of these
Correct Option: D

Free the memory pointed to by ptr



Your comments will be displayed only after manual approval.