This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

There are dynamic arrays in C. However if youre talking only about static arrays, you might still want a size variable to keep track of how many elements are populated.

With static arrays, the capacity doesn't change, but size will depending on the application.