Hello everybody. All though I have joined recently, iv been following DANIWEB since years. I was wondering if someone could help me understand how link lists exactly work. I understand how they work in general, but when I tried to understand what the "->" operator does and how it exactly works, I got very confused. overall I do not have a very clear concept of pointers and "->" operator hence I am finding is very hard to program a linked list in which I need to insert data and print it out. If someone could just make me understand how pointers and "->" operator works, I will write some code and post it back.
UberJoker
0
Junior Poster in Training
Recommended Answers
Jump to PostOkay, all a pointer is is a number (indeed to see it in C use the & operator).
What the are you talking about? You don't use the & operator to see the memory address.
Its a number standing for a memory address (like a co-ordinate). You use -> to …
Jump to Postlol...ok...can u explain me then?
All 5 Replies
jbennet
1,618
Most Valuable Poster
Team Colleague
Featured Poster
UberJoker
0
Junior Poster in Training
Rashakil Fol
978
Super Senior Demiposter
Team Colleague
UberJoker
0
Junior Poster in Training
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.