If a = 5 and b = 2 give the output of the following : [2] a + = (a++) + (++b) % 2 + a; System.out.println (a);
Answers
Answered by
1
Answer:-
Given,
a=5, b=2
a+=a++ + ++b%2+a
>> a=a + a++ + ++b%2 + a
>> a=5+5+3%2+6
>> a=10+1+6
>> a=17
Now, a gets printed.
So, output:- 17.
Output:-
17
Similar questions
Art,
2 months ago
Science,
2 months ago
Music,
2 months ago
India Languages,
6 months ago
English,
6 months ago
Physics,
11 months ago
Business Studies,
11 months ago