My C Quiz

The ultimate place to learn C!

Question #5: Which are true about: void *realloc(void *ptr, size_t size);

1) realloc changes the size of the allocated
    memory pointed to by the argument ptr

2) newly allocated memory will be uninitialized

3) you can pass a NULL ptr safely to realloc

4) realloc will guarantee not to move the data 
    pointed to in ptr