%u2022 Use 1 dimensional arrays. %u2022 Use functions in the implementation %u20
ID: 3538563 • Letter: #
Question
%u2022 Use 1 dimensional arrays.
%u2022 Use functions in the implementation
%u2022 Use rand() and srand() functions from the library.
%u2022 Generate random numbers using the above functions.
Make sure to use these function
int check_error(int): This function takes an integer number and checks if the number is between 0-100 or not if it is it returns 1 otherwise 0.
void initialize_array1(int): This function takes an integer number which is the size of the first input and initialize the global 1D array with random numbers between 0-99.It is used to initialize the first global array.
void initialize_array2(int):
void print_array1(int):
void print_array2(int):
int find_max(int , int):
main():
SAMPLE OUTPUT
Enter the size of the first input: 123
Invalid input enter the size of the input again: -12
Invalid input enter the size of the input again: 0
Invalid input enter the size of the input again: 6
Invalid input enter the size of the input again: -12
Invalid input enter the size of the input again: 8
37 78 58 47 76 56
Input array 2
75 98 68 34 45 1 38 43
Explanation / Answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.