Here's a simple question that I don't know the answer to. I hope someone knows a trick or two.
Say you have two arrays and you want to make a single function to print the out the elements. One is size 2 and one is size 3 let's say. Is there a way to read the number of elements in an array so that you don't print out 3 elements if you're printing the array with 2 elements?