What will be the output of the following code segments:
int a=5, b=10, C=9, d=8;
System.out.println(" " + (a + + + + + C---b+d--);
System.out.println(" " + ((a>b)? ++d:--b);
Answers
Answered by
0
First syso will give space 14
And second will give space 8
OUTPUT
14
8
Similar questions
Physics,
3 months ago
English,
3 months ago
Math,
3 months ago
Math,
6 months ago
Social Sciences,
6 months ago
Social Sciences,
10 months ago
English,
10 months ago