z = x++ % y++ ; x = 4 and y = 5 in Java programming
siddhartharao77:
It will be 4. Do u want us to write a java program?
Answers
Answered by
1
Post-increment operator: A post-increment operator is used to increment the value of variable after executing expression completely in which post increment is used. In the Post-Increment, value is first used in a expression and then incremented.
Syntax:
a = x++;
"%" : modulo operator or remainder operator.
z=x++(4)%y++(5)=4.
Syntax:
a = x++;
"%" : modulo operator or remainder operator.
z=x++(4)%y++(5)=4.
Similar questions