Unable to understand the problem
Sum of two arrays - The code is getting segmentation fault
You just need to perform normal addition and print the result as shown
4
1 0 2 9
5
3 4 5 6 7
34567+1029
35596
See this code https://ide.codingblocks.com/s/276331 for implementation
check my code im not understanding the error
Please share your code then
what was the error ?
i am still getting segmentation error
The code I shared is working fine , I just submitted
You weren’t doing k-- in the second loop
/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe this is the error its showing when i compiled the code
Please send the test case you are trying