Question d’entretien chez Microsoft

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

Réponse à la question d'entretien

Utilisateur anonyme

30 avr. 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.