Recursion bubble sort

code: https://ide.codingblocks.com/s/117493
why i am getting a runtime error ?

while calling function in main you have pass value of j=5 and n=0 that why you are getting runtime error just correct it
you will get correct ans