Why these both statements have same output??
why i++ and ++i works alike in for loop??
for(int i=0;i<5;i++)
or
for(int i=0;i<5;++i);
cout << i << endl;
//output:
/*
0
1
2
3
4
*/
Thanx in Advance
Asad Abbas
UET Taxila
Pakistan--------------------------------------------------------------------------------
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
Robert Firth
[Non-text portions of this message have been removed]