Slide 1UNIT IV Slide 2 Definition of Array: An array is defined to be a group of logically related data items of similar type, stored in contiguous memory locations, sharing…