Cant understand the demand of the challenge?

ARRAYS-SUM OF TWO ARRAYS
Take as input N, the size of array. Take N more inputs and store that in an array. Take as input M, the size of second array and take M more inputs and store that in second array. Write a function that returns the sum of two arrays. Print the value returned.

Input Format:
Constraints:
Length of Array should be between 1 and 1000.

Output Format
Sample Input
4
1 0 2 9
5
3 4 5 6 7
Sample Output
3, 5, 5, 9, 6, END

C++
Download Testcases
Unlock Editorial
Submit Code
Custom Input

Run Code
Output :

@himanshuep32 In this question you just have to take the input of the two arrays and pass them to a function. In that function, you need to add the values of the two arrays like in the given example,
Arr1 = [1 0 2 9]
Arr2 = [3 4 5 6 7]
So, let num1 = 1029 and num2 = 34567
Perform normal addition on num1 and num2
1029+34567 = 35596
Return this new number to main and print in the given output format like 3, 5, 5, 9, 6, END.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.