filmov
tv
Write a program in C to find the second smallest element in an array. #srn
![preview_player](https://i.ytimg.com/vi/WfCOA3EV9Z0/maxresdefault.jpg)
Показать описание
Write a program in C to find the second smallest element in an array.
Test Data :
Input the size of array : 5
Input 5 elements in the array :
element - 0 : 0
element - 1 : 9
element - 2 : 4
element - 3 : 6
element - 4 : 5
Expected Output :
The Second smallest element in the array is : 4
Test Data :
Input the size of array : 5
Input 5 elements in the array :
element - 0 : 0
element - 1 : 9
element - 2 : 4
element - 3 : 6
element - 4 : 5
Expected Output :
The Second smallest element in the array is : 4