+ 1
Why its giving error? And not increamenting x twice?
public class Program { public static void main(String[] args) { int x = 34; int y =(++ (++x)); System.out.println(y); } }
5 odpowiedzi
+ 3
it because parentheses
Mireille has right too
+ 2
hi, because first increment is ok inside (..(++x)) but second is (++35) the new value not (++x)
+ 1
Oneill.....but what's the reason?