What is the difference between += and =+? Specifically, in java, but in 开发者_开发技巧general also.i += 4;
Java\'s unary plus operator appears to have come over from C, via C++. int result = +1;开发者_JS百科
This question already has an answer here: Using the && operator in an if statement (1 answer) Closed 3 years ago.
In K&R ANSI C book, section A.7.4.5 (Unary Minus Operator) it is stated: ... The negative of an unsigned quantity is computed by subtracting the promoted value from the largest value of the prom