Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    Please post the code you have written so far. People generally do not like to just write your code for you. Commented May 30, 2010 at 3:27
  • For instance: Dynamic array of structs in C: stackoverflow.com/questions/260915/… Commented May 30, 2010 at 3:29
  • 1
    How about the first google hit cplusplus.com/reference/clibrary/cstdlib/realloc ? What did you try so far? Commented May 30, 2010 at 3:29
  • 1
    I had good luck searching Google for realloc example Commented May 30, 2010 at 3:30
  • See here for a more involved solution that wraps up the array with its length Commented Oct 6, 2014 at 23:59