Can you traverse over an array contents in c?

C

Chad

I don't know if there is a difference in C, but at work, the Java
Programmers draw a pretty clear distinction between traversing an
array and traversing an array contents. Maybe I need to think about
this some more, but is it possible in V to traverse an array contents
vs just traversing an array?
 
K

Keith Thompson

Chad said:
I don't know if there is a difference in C, but at work, the Java
Programmers draw a pretty clear distinction between traversing an
array and traversing an array contents. Maybe I need to think about
this some more, but is it possible in V to traverse an array contents
vs just traversing an array?

You mean "in C", right?

You'll need to explain the distinction.
 
M

myforwik

I don't know if there is a difference in C, but at work, the Java
Programmers draw a pretty clear distinction between traversing an
array and traversing an array contents. Maybe I need to think about
this some more, but is it possible in V to traverse an array contents
vs just traversing an array?

No, but you can sort of achieve the same thing by making an array of
pointers and pointing those pointers to each object of an array. That
way you can traverse the array instead of the contents, but that would
be sort of pointless. The concept doesn't really exist in C because C
has pointers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top