Image of Singly Linked List
Hy Guys, I'm litle bit confused with the image above. 1000, 800, 1400, and 1100 is memory address, so let's make it H1000, H800, H1400, H1100.
My Questions are:
1. Content of All of memory address above only INFO, or both INFO and LINK?
2. P only pointing to INFO, or to both?
3. P pointing to H1000?
4. If I print P, it'd shows me H1000?
5. R only pointing to LINK, or to both LINK and INFO?
6. If I print R, it'd shows me memory address of LINK or H800?
7. is P->LINK a correct syntax, since P is only a pointer?
8. is R->LINK a correct syntax, since R is only point to LINK?
nodewhich includes the payload (info) and the pointer to the next node (link).ppoints to thenode(thestructthat you use for the node) which contains the payload and link.1000or1000hexare just different references to the same address.std::list