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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started