C program to find second largest element in a one dimensional array
Write a C program to find second largest element in a one dimensional array.
Example:
Input :
arr[] = {10, 8, 7, 12, 14, 9}
Output :
Second largest element: 12
Input :
arr[] = {4, 6, 11, 10, 4}
Output :
Second largest element: 10
Algorithm:
C implementation to find second largest element in a one dimensional array
Output
need an explanation for this answer? contact us directly to get an explanation for this answer