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?
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.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.