Question: Task2: Substitute Array Given an int array, and a single integer, set all locations in the array to O that contains the given integer. Print

Task2: Substitute Array Given an int array, and a single integer, set all locations in the array to O that contains the given integer. Print out the array elements before and after making the changes. Input: task2_input Output: old Array: 3 1 8 4 1 9 0 1 2 1 1 1 1 6 1 New Array: 3 0 8 4 0 9 0 0 2 0 0 0 0 6 0 15 3 1 8 4 1 9 0 1 2 1 1 1 1 6 1 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
