Pointers Dynamic Memory Allocation Multiple Files Going Allow User Tell Us Large Array Gen Q37065035

Pointers, Dynamic Memory Allocation, and MultipleFiles

We are going to allow the user to tell us how large ofan array to generate, sort it, then search for a value. This willinvolve multiple files that contain definitions, the first time forus.

  1. Ask the user how large they want their array tobe

  2. Dynamically allocate an array with specified size usinga pointer

  3. Fill each value in the array with rand() %100

  4. Display the array

  5. Sort the array using one of the functions found inSeparate.h

  6. Display the array again

  7. Generate a number (rand()%100 or user input, yourchoice) and display the results when your sorted array is searchedfor that number using the other

    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.