A teacher of mine at NCC course said that a Array cell contains the memory address (pointer) of the next cell. is it true ?
hasan2003
0
Newbie Poster
Recommended Answers
Jump to PostNo. It contains whatever data the array type is.
Jump to PostYour teacher is confusing arrays with linked lists. An array is always a contiguous sequence of cells, so there's no need for one cell to "point" to the next. Because the nodes of a linked list are not contiguous in memory, a pointer to the next node is critical.
All 8 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
Narue
5,707
Bad Cop
Team Colleague
hasan2003
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Asif_NSU
25
Posting Whiz
hasan2003
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Acidburn
0
Posting Pro
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.