My code is - https://ide.codingblocks.com/s/330156
I think there is segmentation error
Hey @sukritbansal01 Update this.
if(j==n-1) { bubble_sort(a,0,n-1); return; //Added this }