is there is any way to access 3rd element of a linked list without using arrow operator??
ankit.4aug
0
Newbie Poster
Recommended Answers
Jump to PostDepends on how you made the linked list.
If you don't like arrow operators, though, you can dereference the pointer explicitly, like so:
(*a).something
is identical toa->something
All 4 Replies
Moschops
683
Practically a Master Poster
Featured Poster
ankit.4aug
0
Newbie Poster
Moschops
683
Practically a Master Poster
Featured Poster
ankit.4aug
0
Newbie 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.