Help with dynamic length of arrays being passed into a function
I'm trying to work through a few problems. This one involves combining two "list" by passing them to a function that can write them in alternating order. My first big question is why does the dynamic length only show the two arrays being passed to the function as having 2 items? In the main code the arrays are both 3 items long, yet in the function they are only 2. Also if I was wanting to combine this into a new array, how could I go about doing that? My thoughts are the function would still be a void function or would I have to allow it to return an int? I was thinking something like: int new_arr = com_arr(*arr1, *arr2); then writing a loop to print the new array. I know time complexity would be worse but trying to possible code this to take in user input and maybe even create a linked list at some point. Thanks for any input. https://code.sololearn.com/chSsU2TLbG19/?ref=app