Confusion in quiz! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Confusion in quiz!

I am trying to sort an array ascending int a[4] = {1,-2,3,-4} int *p = a int p = b; p = &a[a--] while ( pa <= pb ) { printf("%p",p++ } but it's looks like I created a huge mess 😅

28th Oct 2018, 1:28 PM
mo🐼
mo🐼 - avatar
2 Answers
+ 1
Just want to say tittle is unclear. So i made a insertion sort only use pointers. Insertion sort is good to sort few elements ( like 10 elements) Here take a look: https://code.sololearn.com/cH474lB5Nak5/?ref=app
28th Oct 2018, 3:27 PM
Anya
Anya - avatar
0
OK that's what I was talking about but I want it not just in a few elements so I messed things up... thanks 🙆
28th Oct 2018, 3:55 PM
mo🐼
mo🐼 - avatar