by =?UTF-8?B?RXJpayBXaWtzdHLDtm0=?= <Erik-wikstrom@[EMAIL PROTECTED]
>
May 3, 2008 at 04:59 PM
On 2008-05-03 17:58, yogi_bear_79 wrote:
> Assume a linked list of nodes which have an info data member and a
> next data member. Suppose a pointer called cursor points to a node in
> the middle of the linked list. To move ptr to the next node use:
>
>
> ptr=next;
> next->ptr;
> ptr->next;
> ptr=ptr->next;
> none of the above.
>
> I want to anwser none of the above as i feel it should be cursor-
>>next; But 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:). is this a trick question, or am i reading to
> much into it?
If we assume that it is not a trick question the correct answer is 4
(ptr=ptr->next). If it is a trick question (which I doubt) then the
correct answer is 5 (none of the above), just like you said.
--
Erik Wikström