0
Insertion sort
5 Answers
0
I m unable to run the program, its showing exception
0
Something related to index
0
Your arr array ldngth is n=4.
But in line
arr[n+1]=arr[n];
Here your accessing n+1 location.. Which is invalid.. So it raise exception.. You can change or extend array length..
And Why are you printing newarr values, which are not set only intilized to 0 and not modified any where...
0
Insert sort.. How you are trying this here..? Which one or in which you want to insert 10?