the ouput will be 012 for your program.
i in the for loop prints before it incremented.
both i++,++i are same in case of forloop.(prints i before it increments same output.
if you try this
for(int i=0;i<3
print(++i)
(prints 012)
and
for(int i=0;i<3
print(i++) you can see the difference.(prints 123)
but when we use
for(int i=0;i<3;i++)\
print(i)\
for(int i=0;i<3;++i)\
print(i)\
we get the same output :012
hope you will understand it