Загрузка...

What is an Array?

Arrays are one of the most fundamental data structures which every coder must understand to its fullest. Arrays are very commonly used because they are simply a collection of a lot of a specific datatype and are always very easy to set up.

Examples of valid arrays would be:
[1, 2, 3]
["a", "b", "c"]
[1.5, 2.5, 3.5]

Invalid arrays include:
[1, "a", 3.5]
[1.2, 4, 7, 9]

When you use an array you have to call it by an index to specify which element in the array you want to access. However, there is another way to access elements in arrays using pointers/iterators in low-level programming languages.

Let me know in the comments if you want a video about iterators and how you could possibly use them in algorithms to make them more efficient.

Видео What is an Array? канала CodewKai
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять