Question: Given below is a program that takes in two 10-element integer array(Array1 and Array2, and identifies the elements that exist in Array and not inArray,

 Given below is a program that takes in two 10-element integer

Given below is a program that takes in two 10-element integer array(Array1 and Array2, and identifies the elements that exist in Array and not inArray, and stores them in a third array called difference. Fill in the blanks to help the program work as it should Note that this program catches the different elements, no matter at which index they appear in these two arrays. An example on 3-element arrays:if Array -[1.2.1) and Array2-12.1.3), difference will contain . if Array1-11.2,4} and Array2-12.1.3), difference will contain (4) int maino int Array 0 - (5.6.7. 33, 55, 34, 99, 100, 45, 4); Int Array20 - (13,4, 6. 11.9.7, 5. 2. 55. 88): Int difference[10] -0: Il in the worst case all 10 elements will be different bool found: int index-0: for (int i0:1

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!