1. Second Largest & Smallest
Complete the below function (MyFun) which takes an unsorted integer array 'A' as a parameter.
The second parameter is the length of the array.
The function needs to find the second largest and second smallest number without sorting the array
(Do not use a library function to identify the number)
A[] = {5,8,7,6,9,2,4,1,3,10}
len = 10
Second Smallest: 2
Second Largest: 9
Answer:
void MyFun(char A[], int len)
Answers
Answered by
0
Answer:
hua hu aj ah her eye and I'm eating eyes still
Explanation:
uuummm Suyuhuuuhggg good to talk
Answered by
0
Answer:
Explanation:
Given an array of integers, our task is to write a program that ... Explanation: Largest element of the array is 10 there is no second largest element ... which is not equal to the largest element from the sorted array. ... Function to print the second largest elements */ ... There should be atleast two elements */.
Similar questions
Math,
2 months ago
Biology,
6 months ago
Biology,
11 months ago
CBSE BOARD X,
11 months ago
Biology,
11 months ago