Sunday, January 15, 2012

Arrays as return type in C++?

you cant return an array in C++. you can return a pointer to an array though. In your case, there is no need to return the array (or a pointer) since the array is ped to the function and modified in the function.

No comments:

Post a Comment