Quick sort is giving wrong output pls check my code

Hey @shrutikatyal ,
I updated your code and mentioned in comments :https://ide.codingblocks.com/s/329305