PREV INDEX NEXT

Author: Unknown
Subject: Dynamic Arrays
Date: Tuesday, 07 Apr 2020, 23:57:16

For the dynamic arrays, should we be using realloc() to allocate the correct size of our arrays containing the triples each time we add a new triple? If so, does realloc move automatically move char *'s and ints that were created earlier, or do we have to manually do that?

Additionally, when keeping our arrays sorted, are we supposed be using a sorting algorithm to sort all the elements of an array? If not, what other tips do you have to keep the triples sorted?
PREV INDEX NEXT