Question: printMyArray ( arr, size ) ; / / Create a prototype for printMyArray function int main ( ) { int i; int / / Create

printMyArray (
arr,
size); //Create a prototype for printMyArray function
int main (){
int i;
int
//Create a stacked array which is called myArray, store 25 integer elements
for ;
25 ;
{
myArray
%
=
; //Create random number and range is -15,59
}
//call printMyArray function and print your array elements
//send address of the first item of myArray
return 0 ;
}
void printMyArray (int *arrPtr, int size){
int i;
for size ;i++
{
std::cout*1_ l"; //print array elements
}
}
 printMyArray ( arr, size); //Create a prototype for printMyArray function int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!