Question: Write a C program that generates 100 random numbers between 1 and 1000 and displays the minimum number and number of its occurrence in the
Write a C program that generates 100 random numbers between 1 and 1000 and displays the minimum number and number of its occurrence in the array. Your program should implement the following functions: a. fillArray (int nums[], int n): To generate 100 random numbers between 1 and 1000 and stores them in array nums. b. recursiveMinimum (int nums[], int size): a recursive function that returns the smallest element of the array. The function should stop processing and return when it receives an array of one element. c. int findFreq (int nums[], int size, int key): To find and return the number of occurrence of the minimum number found by recursiveMinimum in the input array. d. void displayArray(int nums[], int size): To display the array elements (10 numbers in 10 rows). \
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
