Original Post
Hey all,
I''m trying to return an array from a function (or the pointer to the array, same thing more or less).
Anyways, the array is declared locally within the function and VC is bitching at me and I can''t help but listen when I get a compiler warning. The warning is saying that I''m returning a temporary or local address.
I really need to return 2 values though, from the function, so I can manipulate stuff in another function.
Is it okay to return a temporary or local array or is there a better way to return 2 values?
Please no STL or anything.
Thanks.