Code:
warning: function returns address of local variable
I personally prefer to return a value rather than modify it by reference, but the compiler doesn't like this idea for arrays. What are the hazards involved and can I avoid them without passing a reference? Thanks!