Thursday, March 12, 2009

What is the difference between the prefix and postfix forms of the ++

Question :What is the difference between the prefix and postfix forms of the ++
operator? (CoreJava)

Answer :The prefix form performs the increment operation and returns the value
of the increment operation. The postfix form returns the current value all
of the expression and then performs the increment operation on that
value.

No comments: