Member Avatar for Abdul_68

Write a program to sort an array of integers in ascending order by using pointers

Write a program to sort an array of integers in descending order by using pointers

Recommended Answers

All 2 Replies

OK, I just finished writing them. Now what?

commented: you can share them right +0

I cheated and used the sort() function since it's part of the standard library.

Since the job is to write a program to sort, that looks rather basic as we don't have to create the actual sort code since, it's already done for us.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.