This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: items you want in the array s Second argument must indicate the size of one of those array items s Allocates a single sequential and contiguous block of memory of the size needed s Returns NULL if the request cant be fulfilled s Returns the Address of that space if it can be Rules s Space is allocated from a place called the heap s Once allocated, the size is fixed (cant change size and remain at that location in memory) s The space is sequential and contiguous so can still use array index or pointer method (exactly the same as a statically allocated array) s The name of the Array is NOT CONSTANT but be careful not to lose the location of the beginning of the array s Once allocated and you are done using it, the space must be freed...
View Full Document
- Fall '07