An array is a collection of variables of the same type stored in a single block of memory.
Arrays allow you to store multiple values using one variable name.
You can declare an array and initialize it at the same time.
The number inside brackets defines the size of the array.
Array elements are accessed using an index.
Indexing starts at 0.
You can change values in an array by assigning a new value to an index.
Arrays are commonly used with loops to process multiple values.
You can calculate the number of elements using sizeof().
Arrays are stored in contiguous memory locations.
This means each element is stored next to the previous one.
In C, arrays are closely related to pointers.
The array name represents the address of the first element.
Arrays can have multiple dimensions, like a table or matrix.
Be careful with these:
Arrays are fundamental in C and are used in almost every program.
Create an array of integers and print all elements using a loop.