Purchase Solution

two pointer arrays

Not what you're looking for?

Ask Custom Question

How do I write a program that will read ten integers from the keyboard and place them in an array? The program must then sort the array into ascending and descending order and print the sorted lists. The program must not change the original array or create any other integer arrays. How would I begin this problem if I'm working on a unix based system?

Purchase this Solution

Solution Summary

The use of two pointer arrays is shown.

Solution Preview

The solution this problem requires two pointer arrays. The first pointer array is rearranged so that it points to the data in ascending sequence. The second pointer array is rearranged so that it points to the data in descending sequence.

Here are some hints:
<br>1. Read ...

Purchase this Solution

Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Javscript Basics

Quiz on basics of javascript programming language.