Returning Array from Function

Since it is not possible to return the address of a local variable outside of a function it will need to be defined as a static variable, thus allowing a pointer (to that static variable) to be returned.

 

Leave a Reply