On 2006-02-06 08:35:43 -0500, "Tany" <ta**********@gmail.com> said:
How can I declare function returning array of Integer pointers . Please
help !!
You can't. You can, however, declare a function returning any of:
A reference to an array
A pointer to an array
A vector
A structure containing an array,
etc.
You could also write a function that takes as a parameter a reference
or pointer to any of the above, and then populates the
referenced/pointed-to object instead of returning the same data.
Another option is to write a function that takes an output iterator as
a parameter. The function could then write to that iterator.
Which of these you should use depends on the actual problem that you're
trying to solve.
--
Clark S. Cox, III
cl*******@gmail.com