- 1
int a=1,b; b=++a + a++ + ++a + a++; System.out.println(b); System.out.print (a); What is the value of 'a' and 'b' ??
2 Réponses
+ 8
Read this forum concerning Pre and Post incrementation:
https://stackoverflow.com/questions/4445706/post-increment-and-pre-increment-concept
b = 2 + 2 + 4 + 4 = 12,
a = 5
- 3
A is 5
B is 13