Is it possible to have an array of structs which are link listed?
-Dyn4sty
Is it possible to have an array of structs which are link listed?
-Dyn4sty
That depends entirely on what you think you mean by that question. You can have an array of structs, yes. Those structs can contain pointers to other structs in the array, sure; and you can set it up so that the structs form a legitimate linked list independent of the ordering in the array. I don't see a compelling reason why you would want to do so, but it's certainly easy enough to do.
You can also have an array of structs, each of which is the head of a (different) linked list.