LISTS Flashcards
1
Q
list Array declaration
A
Size of array must be known at compiler time
Not passed by copy, address of element is passed to the function
2
Q
Limitations of arrays
A
Need contiguous memory space
Large arrays could be problematics
Does not grow dynamically
Deleeteing /inerting elements in middle is expensive
3
Q
Linked list inserting
A
Locatie index element
Allocate memory for new node
Point new node to successor
Point new nodes predecessor to the new node