+ 1

Increment decrement operator in Java

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

30th Jul 2019, 6:23 AM
Ashutosh Vishwakarma
Ashutosh Vishwakarma - avatar
1 Resposta
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
30th Jul 2019, 9:50 AM
zemiak