0

Postfix

Why when we use Int x=34; Int y=x++; The valie of y is the same

8th Feb 2019, 2:21 PM
Bilel
2 Answers
+ 2
because the x++ returns the value of the x variable and then increments you can use ++x it increments the value of x and then return for example: int x=34; int y=++x; now the value of x is 35 i hope u understandđŸ€ž.
8th Feb 2019, 2:37 PM
HAS|B
HAS|B - avatar
+ 2
Please use the search bar before asking a new question. You can use this code if it is too hard to do that. https://code.sololearn.com/W5o96rwx01NC/?ref=app https://www.sololearn.com/discuss/1316935/?ref=app
8th Feb 2019, 2:44 PM
Seniru
Seniru - avatar