Computer Science, asked by priyanshuprem63, 5 months ago

write the output of the program (a)a+=a++ + ++a+--a+a--; when a=7 (b) public static void main(String[ ] args)
{
int a=5;
a++;
System.out.printin(a);
a-=a(a--) + (--a);
System.out.printin(a);
}​

Answers

Answered by Oreki
2

a) a += a++ + ++a + --a + a--, a = 7,

a += 7 + 9 + 8 + 8

a += 32

a = a + 32

a = 7 + 32

a = 39

b) 6

-10

Similar questions