See actually iam printing the array elements for each loop at line No.21, just to know any array elements got manipulated.Yes actually at arr1[0]its showing 7 as value but in the actual array it is 1 ;Why its happening?
Help me!
Array sum of two arrays
@dbhavanishankar89 can you please share the test case that you have been using so that I can better understand your problem.
Thank you.
No…when iam submitting the solution some testcase are failing
On line 6 you have created arr2 before getting the value of m, that is what causing the trouble here. If not creating the array dynamically, we must mention the size of the array before hand.