I have got stuck with a very basic prb in Linked lists, i m familiar with array, as in array to compare two elements of the array u can simply use their position in the array since they are all positioned in a consecutive manner in memory like:
how can i get the same thing with a linked list?? like
if(p->key > ...... // dont know what to write here to compare the key of the one node, for example the first with the key of the second node.
thanks in advance