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.
-
Ask the user how large they want their array tobe
-
Dynamically allocate an array with specified size usinga pointer
-
Fill each value in the array with rand() %100
-
Display the array
-
Sort the array using one of the functions found inSeparate.h
-
Display the array again
-
Generate a number (rand()%100 or user input, yourchoice) and display the results when your sorted array is searchedfor that number using the other
OROR