Add array not getting output

add array not getting output

@guptashubham210a k will become 0 after all those loops, you want the max of (m, n)

but it will be when both the array have same size na?

@guptashubham210a you can print the value of k and check

not getting proper output

@guptashubham210a you are not giving proper input

@guptashubham210a according to you number of elements should be 2 but you are giving 3 elements as input

I have check by giving proper input also same problem

@guptashubham210a checkout this approach https://ide.codingblocks.com/s/288484

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.