Question: Write down a complete C++ program; Create a function which takes four parameters, two arrays of integers of the same size and their sizes.
Write down a complete C++ program; Create a function which takes four parameters, two arrays of integers of the same size and their sizes. The function should check corresponding elements of the two arrays one by one, if they are the same, both elements of the arrays should be replaced with a fixed variable with value of 999. (The variable is declared inside the function).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
