Question: Write a C++ function that takes an array of integers, index and value int Num, the function should replace the value Num with the

Write a C++ function that takes an array of integers, index and value int Num, the function should replace the value Num with the element present on the Index in the array. Write a main () program to test the function. Example: Array ={11, 22, 33, 44, 55, 66, 77, 88. 99, 101, 13, 19, 23, 45, 47} Num=100 Index=4 Output: Array= 11 22 33 44 100 66 77 88 99 101 13 19 23 45 47 Activate Windows
Step by Step Solution
There are 3 Steps involved in it
Here is a C function that performs the described operation and a main pro... View full answer
Get step-by-step solutions from verified subject matter experts
