What is an array?
Array is aggregate collection of variables of the same type which lets the user access it using a single identifier
Which index would you use to access the 2nd variable in an array?
Since index starts at 0, the index â1â should be used for 2nd variable in the array
What can you say about the size of an array?
The size of an array is not a simple function to use since it does not return the number of elements but rather, element x values of the elements.
How can you initialize an array?
You initialize an array by name[size] {element, element,âŚ}
How can you get the size of an array in bytes?
Sizeof(array)
How can you use the function sizeof in order to calculate the number of elements in an array?
Sizeof(array)/sizeof(array[0])
Does not work for array that doesnât not have a definite size at initialization.
What happens when you try to write outside the bounds of the array?
Unexpected result.