Computing.Net > Forums > Programming > arrays's size

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

arrays's size

Reply to Message Icon

Name: monim
Date: March 25, 2009 at 07:17:05 Pacific
OS: Linux i686
Subcategory: C/C++
Comment:

how can I modify the array size while executing my program <



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: March 25, 2009 at 07:35:56 Pacific
Reply:

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:

http://www.computing.net/answers/pr...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: arrays's size

Question Regarding VB.net and C# www.computing.net/answers/programming/question-regarding-vbnet-and-c/3580.html

Problem learning array and function www.computing.net/answers/programming/problem-learning-array-and-function/7290.html

C Programming - Arrays? www.computing.net/answers/programming/c-programming-arrays/7255.html