I came across a for loop statement in a C++ code, like this:
for (i=N, z=head; i>0; a=z++, i--) {}
The type of z
, head
and a
is a pointer to an array. a=z++
here really confused me. Could anyone give me some guidance on what a=z++
does in this for loop? And what is the relationship between z
and a
?