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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly