Write a function which will display sum of two arrays using pointers. Input Format Take size and
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function which will display sum of two arrays using pointers.
Input Format
Take size and elements as input for both arrays.
Constraints
void arraySum(int *pA, int *pB, int sizeA, int sizeB)
Output Format
Print the summation of all elements in both arrays.
Sample Input 0
31 2 324 5
Sample Output 0
Summation: 15
Explanation 0
Input:
Enter 1st array size: 3 Enter 1st array elements: 1 2 3
Enter 2nd array size: 2 Enter 2nd array elements: 4 5
Output:
Summation: 15
Sample Input 1
51 2 3 4 5210 20
Sample Output 1
Summation: 45
Related Book For
Posted Date: