Question: I need help with Arrays in C++! Please write a program which has a void insertValue(int readInts[],int& count ) function and takes the following 2

I need help with Arrays in C++! Please write a program which has a void insertValue(int readInts[],int& count ) function and takes the following 2 parameters. using

srand(time(NULL));

for(int i = 0; i < 10; i++)

{

readInts[i]= rand() %100;

}

for(int i = 0; i < 10; i++)

{

cout << readInts[i] << " " ; (USE THIS RAND number code to generate random numbers )

in the function using your array with random number , if there is an odd number , INSERT a new value one bigger than the odd number found after every odd number and print the new array.

Please use comments& explain what you are doing in the for loop &etc

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!