++i is a pre-increment operator. The value of i will be incremented first and then that updated value will be used in an expression. i++ is a post-increment operator. The value of i will be used first and then the value of i will be incremented.