Since array size is 7 , elements should be from 0 to 48
int [ ] arr = { 40 , 12 , 45 , 32 , 33 , 1 , 22 } ; int n = arr . Length ; Console . WriteLine ( " Given ▁ array " ) ; printArr ( arr , n ) ; sort ( arr , n ) ; Console . WriteLine ( " STRNEWLINE Sorted ▁ array " ) ; printArr ( arr , n ) ; } }