I have a little confusion in my mind. I know very well the difference between preincrement and postincrement, postdecrement and predecrement.
But i wonder how do these operators work during loop.
I ,myself, use postincrement or decrement in loop as follows:
for(int i=0;i<5;i++)
{
//code
}
But in my book I read mostly preincrement as:
for(int i=0;i<5;++i)
{
//code;
}
So ,in short, my point is ...What is the difference between these two loops?