K
Keith Thompson
Lemor said:second largest element is the the second largest value in a given
array.
int x[] = {2, 2};
Both of then are largest numbers in the array given as both are same.
No one of them is second largest.
Please read <http://cfaj.freeshell.org/google/>.