Computer Science, asked by mohinerawat1983, 9 months ago

when x=5 system.out.println(x++*6%4); find the output​

Answers

Answered by webstararijit
1

Answer:

(x++*6%4)

=5++ *6 %4

=5*6%4 //as post increment so in next step the value of x will be 6

=30%4 //as we divide 30 by 4 we get, q=7 and r=2

=2 //is the output as % gives remainder

the answer 2 ur answer is 2

Similar questions