Predict the output:
int a=6,b=5,c; c = (a++ % b++) *a + ++a*b++;
36 Likes
c = 55
c = (a++ % b++) *a + ++a*b++c = (6 % 5) * 7 + 8 * 6c = 1 * 7 + 8 * 6c = 7 + 48c = 55
Answered By
21 Likes
State the difference between = and ==.
Give the output of the snippet:
int a = 3; while (a<=10) { a++; if(a== 5) continue; System.out.println(a); }
int a=10,b=12; if(a>=10) a++; else ++b; System.out.println(a + "and" +b);