Hi I'm learning C++ now and have problem with for loop.
Code:
int i = 0;

for(int j = i,i=10; j < 5; ++j ) {
cout << i , "\t" , j, "\n";
}


The program prints 1010101010. I'm using g++ compiler. Can anyone please explain what's happening ???
Regards