+ 1

programming

I would like to ask about my coding, why i can't sorting the result of y? https://code.sololearn.com/cA15A19A1a11/#

26th Dec 2020, 1:31 PM
Nur Iffah
Nur Iffah - avatar
1 Odpowiedź
+ 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.
26th Dec 2020, 2:09 PM
Padala Vamsi
Padala Vamsi - avatar