0
Postfix
Why when we use Int x=34; Int y=x++; The valie of y is the same
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đ€.
+ 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