Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: Linked List...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 45742 of 47006
Post > Topic >>

Re: Linked List - M-Choice Question

by yogi_bear_79 <yogi_bear_79@[EMAIL PROTECTED] > May 3, 2008 at 10:33 AM

On May 3, 1:14=A0pm, Daniel Pitts
<newsgroup.spamfil...@[EMAIL PROTECTED]
> wrote:
> yogi_bear_79 wrote:
> > Assume a linked list of nodes which have an info data member and a
> > next data member. =A0Suppose a pointer called cursor points to a node
in=

> > the middle of the linked list. =A0To move ptr to the next node use:
>
> > ptr=3Dnext;
> > next->ptr;
> > ptr->next;
> > ptr=3Dptr->next;
> > none of the above.
>
> > I want to anwser none of the above as i feel it should be cursor-
> >> next; =A0But I could also anwser ptr->next; if I disregard the info
> > leading up to last sentacne which is the actual question (To move ptr
> > to the next node use:). =A0is this a trick question, or am i reading
to
> > much into it?
>
> My guess is that its a typographical error, and that they intented "ptr"
> and "cursor" to be the same thing. =A0I'd suggest trying to get
> clarification if possible.
>
> --
> Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>-
Hide
quo=
ted text -
>
> - Show quoted text -

I'd imagine it is not supposed to be a trick. Asking for clarification
has proved pointless. This is the second of four tests. I asked for
clarification after I took the first one, and received nada. The tests
are extremely badly written. They are not in the text book.
 




 5 Posts in Topic:
Linked List - M-Choice Question
yogi_bear_79 <yogi_bea  2008-05-03 08:58:16 
Re: Linked List - M-Choice Question
"osmium" <r1  2008-05-03 09:43:28 
Re: Linked List - M-Choice Question
=?UTF-8?B?RXJpayBXaWtzdHL  2008-05-03 16:59:03 
Re: Linked List - M-Choice Question
Daniel Pitts <newsgrou  2008-05-03 10:14:20 
Re: Linked List - M-Choice Question
yogi_bear_79 <yogi_bea  2008-05-03 10:33:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 1:51:31 CDT 2008.