+ 2
What is the output?
public class Program { public static void main(String[] args) { int i=15; System. out.println (+(i++)); System.out.println (+(i--)); System.out.println (+(++i)); System.out.println (+(--i)); } }
6 Answers
+ 9
More reference though:
https://www.sololearn.com/Discuss/407846/?ref=app
+ 8
The + signs before the parenthesised postfix/prefix statements are redundant.
+ 5
use the code playground for this
ask if you want to know about the operators
https://code.sololearn.com/cNgfbyl58Hri/?ref=app
+ 3
pre decrement reduces the value of i by 1 before it is used once
post decrement reduces the value of i by 1 after use once 1st time
+ 1
Explain predecrement and post decrement operator....
+ 1
I understood thanks for your explanation âșâș