What is an iterator in a double linked list and what is it used for
What is an iterator in a double linked list and what is it used for
"Iterator" is more of a C++ or Java term. Applying the concept in C, it would just be a pointer or function used to walk a list from head to tail.
The traditional use of i as the control variable in for() loops which iterate through an array stands for either index or iterator -- same principle.
Last edited by MK27; 11-30-2011 at 06:25 AM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge