Programming Concepts Tutorial

Learn the fundamental concepts of computer programming

Arrays

Arrays

An array is a special variable that can hold more than one value at a time. It is essentially a list of items.

Indexing

Items in an array are accessed using their index number. In almost all programming languages, arrays are zero-indexed, meaning the first item is at index 0, the second is at index 1, and so on.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics