Inserting a number into a sorted array

When I was learning to C, our proffessor had given us a problem where we had to enter a number into a sorted array so that the array remains sorted even after the insertion.
So, I tried it yesterday, here's the code for it.

Code: C

/* ** To insert an inputed number into a previously sorted array, ** at such a location so that the array remains sorted. ** @author: Pradeep ** @date: 11/30/2006 */