Array:A collection of elements that are stored in contiguous memory locations. Each element in an array is assigned an index, which allows for easy access and manipulation of its values.
String:A sequence of characters. Each character in a string is assigned an index, which allows for individual characters to be accessed or modified.
Index Out of Bounds: An error that occurs when trying to access an element at an invalid index. It happens when the index provided is either negative or greater than the size of the data structure being accessed.