Array Dimension Question

Rupert Wood me@rupey.net
Wed Oct 17 00:27:00 GMT 2001


Chris L. Vanhouten wrote:

> Is there a way to get around the array size limitation?  

Forgive my ignorance - what array size limitation?

If you mean that your OS limits the amount of space you can take from
the stack, you could always dynamically allocate an array on the heap:
malloc() in C, then recast the pointer and free() when you're done, or
new then delete in C++.

Rup.



More information about the Gcc-help mailing list