Question: C PROGRAMMING: Here is the instruction: Create a program that does the following: -Create an array of size 10 in the main function. -Create a
C PROGRAMMING:
Here is the instruction:
Create a program that does the following:
-Create an array of size 10 in the main function.
-Create a separate function that fills the array with random numbers between 20 and 51 inclusive. You must use pointers to fill the array (*arr=x;)
-Create a separate function to print the array using pointers.
Each function must not contain brackets ([ ]) unless it is part of the print statement within " ". Do not use global variables.
//sample output
array[0]=20
array[1]=21
array[2]=30
array[3]=35
array[4]=51
array[5]=25
array[6]=44
array[7]=22
array[8]=50
array[9]=37
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
