2079 7

CSC115 ยท 2079 ยท 5 marks

Write a program to find the second largest number in the given array of numbers.

Write a program to find the second largest number in the given array of numbers. [5]

C ProgrammingChapter 6: ArraysIntroduction to Array
  1. Read N numbers into an array. 2. Find the largest element first. 3. Then find the largest element among all elements that are NOT equal to the largest -- that gives the second largest. --- --- --- Step What happens ------------------- First loop Reads N numbers into arr[] Second loop Finds lar...