Problem in quicksort code

I tried to implement the quicksort, but I am having some problem in my code and it is giving segmentation fault. My code --> https://ide.codingblocks.com/s/262532

hello @souptiksarkar4572
image

it shoulf bequicksort( arr,pivot+1 ,last)

Okay I got it. It was a very careless mistake on my part. Thank you very much for pointing it out.