DWQA QuestionsCategory: ProgramWhy is it said that the memory allocated by array in C ා, while that allocated by list is discontinuous?
D0g4r33 asked 4 months ago

It is often said that the memory allocated by array in C ා, while that allocated by list is discontinuous. Why?
List implementation is also the data stored by array. Why is this statement? Is that right?
Thank you guys!!!

1 Answers
Then go hiking answered 4 months ago

Listen to who?
During the expansion process, it may be discontinuous at some moment, but it must be a continuous array after the expansion.