ITC Infotech interview question

Sort an array in ascending order and some basic c questions