English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Node 1 -> Node2 -> Node3 -> Node4 -> Node5
<- <- <- <-

A ^ is pointing to Node1,B ^ to Node2, and C ^ to Node5.

For example the info value of node 1, referenced from reference A would be A.getInfo().

a. The info value of node 1, referenced from reference C?

b The link value of node 2, referenced from reference A?

C The back value of node 1, referenced from reference A?

Note: Node1 circles back to Node 5 and vs versa.

2007-03-19 07:22:08 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

a.

C.next.getinfo()

b.

A.next

c.

A.back.getinfo()

A.back is the address of node 5 and address.back.getinfo the value, as you said. Same thing with A.next

Remeber that in a linked list a node has the address of the the next node (also of the previously node in this case).

2007-03-19 07:28:31 · answer #1 · answered by Rafael Mateo 4 · 0 1

round-Doubly-appropriate record?... oh... then, each node has 2 guidelines of (prev,next) . Yeah? nicely, then a. C->next should be A, to be able to remedy it with assistance from... C->next->getinfo(); b. A->next->getinfo(); Oh, right here, what does it meant with assistance from ? ought to i'm getting it with assistance from the records of node 2?,in case you do not ideas, then it really is accessible... c. A->prev is C, so A->prev->getinfo(); thanks reading my detrimental opinion...

2016-11-26 22:43:01 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers