posted 7 years ago
Hi!
On page 82 there is sentense: "The variables in the initialization block must all be of the same type."
That's not always true: variables must be of the same type if they are declared in the for loop, but they may be of different types if the are already declared before the for loop and initialized with some values in for loop.
Actually, example #3 on the page 82 demostrates this: