Write a C program to swap corresponding elements of two arrays using pointers. How to swap two arrays using pointers in C program. Logic to swap two arrays of different length using pointers in C programming.
Example
Input
Input first array: 10 20 30 40 50 60 70 80 90 100 Input second array: 0 9 8 7 6 5 4 3 2 1
Output
First array after swapping: 0 9 8 7 6 5 4 3 2 1 Second array after swapping: 10 20 30 40 50 60 70 80 90 100