C program to add two single dimensional array

C program to add two single dimensional array


Input:

Enter the size of first 1-D array: 5
Enter the elements of 1-D array a:
1 2 3 4 5
Enter the size of second 1-D array:
10
Enter the elements of 1-D array b:
1 2 3 4 5 6 7 8 9 10

Output:

Printing the sum array:
2 4 6 8 10 6 7 8 9 10

Implementation: