>>31913Okay, so if you are writing a program in C, you can only have static sized arrays, i. e. the size of array is constant, so once it's set, it cannot be changed.
In C arrays are just fancy pointers to the consecutive data of the same type. So for example
int arr[] = {0, 78, 10};
creates an array of tree members, indexed from 0 to 2, and stores in memory (in .data segment particularly because it's a global variable)
The size of array can't be changed because it may AND WILL overwrite the variables that come after it.
In memory, this array looks something like this:
Post too long. Click here to view the full text.