// The block of code is repeated 10 times.
// The value of <I>&ptr</I> is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
for(&ptr, 0, 10)
// Block of code
for.next
// The block of code is repeated 10 times.
// The value of <I>&ptr</I> will be 10, 9, 8, 7, 6, 5, 4, 3, 2, 1.
for(&ptr, 10, 0, -1)
// Block of code
for.next
// The block of code is repeated 5 times.
// The value of <I>&ptr</I> will be 0, 2, 4, 6, 8.
for(&ptr, 10, 0, -1)
// Block of code
for.next
// The block of code is not executed.
for(&ptr, 0, 0)
// Block of code
for.next
|