![]() |
|
#1
|
|||
|
|||
doubly linked list w/ one nodeI have just one quick question that I want to verify - if you have a doubly linked list with only one node, does the first pointer point to the node and the last pointer point to null?
|
|
#2
|
|||
|
|||
Re: doubly linked list w/ one nodeWell if there is only one node, isn't the first and last the same? Or do you mean the next and prev pointers? If that's what you mean, I would say they both point to NULL, unless the list is circular in which case they would both point to the node.
|
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| linked list error message | Krandygrl00 | CPP / C++ Forum | 4 | 22-Jun-2005 14:13 |
| search linked list | itsmecathys | CPP / C++ Forum | 20 | 18-Apr-2005 01:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The