+ 1
Increment decrement operator in Java
Solve this question Tell the output If a = 5 a++ + a++ + ++a
1 Answer
0
int a=5;
System.out.println( a++ + a++ + ++a ); // f
//a; b=a+1; c=a+b; d=b+1; e=1+d; f=c+e;
System.out.println( a ); //e