C Programming: Can I return an array (from a function)?
yes and no. The return type CANNOT be something like: int[] myFunction(); What you CAN do is to return a pointer to the first element of the array and by some convention inform the caller how many elements are there to read. /* here the name of the functi...