I think i figured out my bubble sort so far. However, if I try to test my implementation with ./find (I added a printf in helpers to get the sorted array) , the IDE doesn't allow me to input more than 3 numbers (those number are sorted but i wanted to try with more) and goes bust with a forth or more. Plus, I see my CPU usage going to 99%.
I'm posting my code in the first place to understand if it is correct (i hope it is)
this is what happens if i try to input a forth number