Quick Sort segmentation fault

The output says segmentation fault. Please help me identify the mistake in my code.

hello @anuragdeol2017
in quicksort u havent written base case

hey please check the code now. It still shows error after adding base case.

check ur pivot function,in its while loop u need to make sure that i and j are always valid