Binary Searching: Find last occurrence of element in array
Simple C program to find last occurrence index of an element in sorted array. For example if array is {34,45,45,45,56,57,57,68,78,78,78,78} then last occurrence of element 45 is at index 3 and last occurrence of element 78 is at index 11.