GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-May-2006, 18:37
Darth Predator Darth Predator is offline
New Member
 
Join Date: Sep 2005
Posts: 15
Darth Predator is on a distinguished road

doubly linked list w/ one node


I 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  
Old 17-May-2006, 20:52
ubergeek ubergeek is offline
Regular Member
 
Join Date: Jan 2005
Posts: 775
ubergeek is a jewel in the roughubergeek is a jewel in the roughubergeek is a jewel in the rough

Re: doubly linked list w/ one node


Well 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 GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 18:51.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.