adplus-dvertising
frame-decoration

Question

Which of the following remarks about realloc are true?

a.

It allocates memory of required size that need not be contiguous

b.

It may shift the existing block

c.

It can work only with an existing block of memory

d.

Both (b) and (c)

Posted under UNIX

Answer: (d).Both (b) and (c)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following remarks about realloc are true?