|
-
Dec 17th, 2010, 12:31 PM
#8
Re: dynamic array in cpp
realloc() will extend the memory block if possible. If it isn't possible (That is, if the new memory block would overlap other reserved space) it will move the memory block to another address.
If the allocation can not be made at all, meaning that there is no more space, NULL is returned.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|