S
ssylee
What's the difference between i++ and ++i in the following:
for (i = 0; i < maxNum; i++)
{
// what is i here at the first iteration?
}
for (i = 0; i < maxNum; ++i)
{
// what is i here at the first iteration?
}
I know this may be a stupid question, and may even be on the FAQ
already. But I don't exactly know the term of this observation. It
would be great if some advices could head to this message. Thanks.
for (i = 0; i < maxNum; i++)
{
// what is i here at the first iteration?
}
for (i = 0; i < maxNum; ++i)
{
// what is i here at the first iteration?
}
I know this may be a stupid question, and may even be on the FAQ
already. But I don't exactly know the term of this observation. It
would be great if some advices could head to this message. Thanks.