×

# Find second smallest element of unsorted array

Help of this post we are learning about how find second smallest element in given array.

**Algorithm:**

**Execution process:**

Time complexity of this program O(n)

## Accepted Output

Array data is: 34, 21, 5, 52, 23, 12, 42, 12, 323, 33, 5, 12, 344, 23

Second smallest elements is :[12]

**Another Array**

Array data is: 53, 63, 24, 66, 29, 78, 45, 32, 42, 53, 55, 66, 34, 25, 32, 53, 66

Second smallest elements is :[25]

**Another Array**

Array data is: 53, 63, 23, 166, 23, 78, 45, 329, 42, 53, 55, 66, 34, 22, 32, 53, 66

Second smallest elements is :[23]

Given C program to finding second smallest number in array. Iterative approach.

Output

Array data is: 53 63 23 166 23 78 45 329 42 53 55 66 34 22 32 53 66 Second smallest elements is :[23]

View comments and participate Discussion