Increment decrement operator in Java | Sololearn: Learn to code for FREE!

+1

Increment decrement operator in Java

Solve this question Tell the output If a = 5 a++ + a++ + ++a

7/30/2019 6:23:25 AM

Ashutosh Vishwakarma

1 Answer

New 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