An array is a container that holds fixed number of values of same type(data type). Note: If we initialize an array with 5 elements and if we are using only 3 items ...
/*Given an array of integers, find all the leaders in the array. An element is called a leader if it is greater than all elements to its right. The last element is always a leader.