array and ++ operator

whats the difference between the two codes below?

1
2
 tests[i]++;
 tests[i]tests[i++];
1) increments the value inside array tests at location i
2) (? do nothing ?) followed by incrementing i which moves to the next location if accessed via i again.

not sure what #2 is trying to do though, its not a sensible statement.
Last edited on
Why don't you write a simple test program that uses both "codes" and shows the results of each case?
@keskiverto that's exactly what i did and i figured it out.
Topic archived. No new replies allowed.