In the new C99 version of C, it is then possible to create arrays with variable length. Does that mean that dynamic memory allocation is pretty much obsolete? What else does dynamic allocation offer?
Printable View
In the new C99 version of C, it is then possible to create arrays with variable length. Does that mean that dynamic memory allocation is pretty much obsolete? What else does dynamic allocation offer?
dynamic memory offers control over the lifespan of an array or value. Also, structs containing arrays still cannot be variable length.