In my cmpt notes, there is array cout overloaded, ostream. Its job is to just simply print an array. They used for loop to print the array except the last element of the array. Later, they put a condition that if the array size is > 0, then only print the last element. My question is, why is that?
OP: I'd also be interested to know how you're retrieving the size of the array from, seemingly, just the pointer. Can you share the getSize() function? Thanks
edit: or perhaps L is written out by hand?
coder777 - yeah, i think you're right, that's what it could be ... edit: indeed the way it's being passed to the function seems to suggest that even more strongly