1)What is an array?
An aggregate data type that allows many varialbes of the same data type to be accessed.
2)Which index would you use to access the 2nd variable in an array?
1
3)What can you say about the size of an array?
It is determined upon initialization. It is array length multiplied by element size. The sizeof operator will return this value.
4)How can you initialize an array?
type arrayName[array length] {initializer list of array values}
5)How can you get the size of an array in bytes?
use the sizeof, size, or ssize operators
6)How can you use the function sizeof in order to
calculate the number of elements in an array?
sizeof(array) / sizeof(array[0])
7)What happens when you try to write outside the bounds of the array?
It causes a buffer overflow whereby random memory is overwritten. This can be exploited.