Programming design
Question Description
Project 4, Program Design
1. (50 points) Write a program arrays1.c that checks if two integer arrays are different by one
and only one element when compared element by element (first element with first element,
second with second, and so on) and displays the elements that are different. The program asks the
user to enter the size of the arrays and then the elements of the arrays.
Sample input/output #1:
Enter the length of the array: 5
Enter the elements of the first array: -12 0 4 2 36
Enter the elements of the second array: -12 0 4 5 36
Output: The arrays are different by one element, 2 and 5.
Sample input/output #2:
Enter the length of the array: 4
Enter the elements of the first array: -12 0 4 36
Enter the elements of the second array: -12 0 4 36
Output: The arrays are NOT different by one element
Sample input/output #3:
Enter the length of the array: 5
Enter the elements of the first array: 5 0 4 2 36
Enter the elements of the second array: -12 0 4 5 36
Output: The arrays are NOT different by one element
1) Include and implement the following function in the program. Do not modify the
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."