Martin Ambuhl
3/29/2011 7:04:00 PM
On 3/29/2011 2:01 PM, mt wrote:
> Why is it not possible to use multiple indices in a for loop in C like
> in java,
>
> Example:
> for (int i = 0, j= 0; i<= 10; i++,j = 2 * i) {}
What makes you think you cannot do this? In pre-C99 compilers you need
to declare i and j outside the loop of course, but any C99 compiler
should like it as it stands.