arrays's size

March 25, 2009 at 07:17:05
Specs: Linux i686
how can I modify the array size while executing my program <

See More: arrayss size

Report •

March 25, 2009 at 07:35:56
I'm assuming this is a C/C++ program. I don't think you can change an array size during program execution. However, if you use pointers instead of arrays, malloc/realloc controlls the C memory management. Here is an example:

Report •
Related Solutions

Ask Question