Can you please explain the process that is performed on the background when we access an element of the list by index?
My knowledge of C is pretty limited, thus I cannot fully understand the source code. So far I have identified this function declaration as the relevant one.
Based on this article, my understanding is that a list is an array of pointers. Once the list is created, the list structure contains the length and the allocated memory which is normally greater than size. However, I do not understand the following:
When we access an element, do we make use of length of the list? Or we just access the pointer ob_item[i]?
The following question does not answer this one as it only covers list implementation.