int a=8
a=--a+a--+a++;
--a=a-1=8-1=7
a--=-1+a=-1=8=7
a++=a+1=8+1=9
a=--a+a--+a++=7+7+9=23
ritu gupta
Jun 14th, 2016
20
@ritu
Jun 15th, 2016
21 a=8
a=--a+a--+a++;
--a=7
a--=6
a++=7
first all the computations are done then the values is substituted for in expression from right to left
a=7+7+7=21
shanga
Jun 7th, 2017
What is byte of code in the context of Java?
steven.mtl
Jul 13th, 2017
20
himanshu kumar singh
Feb 14th, 2018
A=8;
--a=8-1=7; now a value is 7
a--=7-1=6; now a value is 6
a++=6+1=7; now a=7+6+7=20
What is the output of the following program?
public static void main(String [] args){
int a=8;
a=--a+a--+a++;
System.out.println(a );
}}
Related Answered Questions
Related Open Questions