C Program To Find First and Second Biggest Element In An Array
Satish B
https://technotip.com/8844/c-program-to-find-first-and-second-biggest-element-in-an-array/
Lets write a C program to find first and second biggest element/number in an array, without sorting it.
Example: Expected Output Enter 5 unique integer numbers 5 2 6 4 3 First Big: 6 Second Big: 5
Important Note: This code only works for inputs which has unique integer numbers. If there are duplicate integer numbers which is biggest in the array, then it’ll show the same number for both first and second biggest element. We can fix it, but it’s out of scope of this problem statement. Just know the limitation of this code.
Ex: a[5] = {2, 4, 5, 3, 5}; In this case, both first big and second big will have value 5.
C Programming Interview / Viva Q&A List https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=iBqz2ZmQHSE
26392045 Bytes