+ 1
programming
I would like to ask about my coding, why i can't sorting the result of y? https://code.sololearn.com/cA15A19A1a11/#
1 Answer
+ 3
In main function you have declared a pointer y but not initialized, usually it is the cause of wild pointer. And also in Ysorted() function you have declared int x, but not initialized that means x now has garbage value. I think you should recheck your code.