Doubt in Arrays-Sum of two Arrays

The code is running fine.However only the first test case is not being passed,while other test cases are passed.
Here is the code given below.

Hello @ratulhans,
The code you have shared is not for sum of two arrays.
Please send the correct link.

Ohh I’m extremely sorry.Here is the code

Your code is giving wrong output for the case
3
1 2 3
4
9 8 7 6

Your output:
1, 9, 9, 9, 9, END

Correct output:
9, 9, 9, 9, END

I have made the corrections in your code and commented them. https://ide.codingblocks.com/s/111202
Hit like if you get it.