Quote Originally Posted by grumpy View Post
Are you also claiming that, if the pointers point at the head of a linked list, that you can access other elements of each linked list using array subscripts?
No, because linked lists have nothing to do with an array of pointers. So why on earth would I claim that? For that matter, why would you even assign the head of your linked list to a node in an array of pointers to nodes? I suppose if you're trying to make some kind of a hash table, but that's really the only reason I can see to do so.

But I can still access the contents of the first element as if it were a 2D array, because it is. It's a [N][1] array. Because that's how you allocate 2D arrays, which is my entire point. If you know how to make dynamic 2D arrays, then you know how to make a dynamic array of pointers.

It's also rather amusing that you brought linked linked lists to this discussion, since you whined about me mentioning 2D arrays.


Quzah.