Cay Horstmann wrote:
In Java, you need 44 characters just for
Then you can complete the function with another 27 characters. (At least that's the shortest that I can come up with.)
15.14.2 Postfix Increment Operator ++
A postfix expression followed by a ++ operator is a postfix increment expression. The result of the postfix expression must be a variable of a type that is convertible (§5.1.8) to a numeric type, or a compile-time error occurs. The type of the postfix increment expression is the type of the variable. The result of the postfix increment expression is not a variable, but a value.