Write a C program to find largest / maximum difference between two elements of an array, such that larger element…