Microsoft Interview Question

The interview included a basic thecnical question regarding the difference between an array and a list.

Interview Answer

Anonymous

Apr 30, 2023

All elements in array are the same type while in a list it can hold different types of elements. Arrays are more effient memory-wise because the data is stored continuously while a list might store only pointers to the elemnts continuously.