DEV Community

asilbek ibragimov
asilbek ibragimov

Posted on

1 1 1 1 1

13. Operators(Advanced)

13. Operators(Advanced)

a) += operatori qanday ishlaydi? Misol keltiring.

b) ++ operatori qanday ishlaydi? Post-increment va pre-incrementni tushuntiring.

Javoblari :
a) x += y == x = x + y;

b) Post-increment operatori o‘zgaruvchini avval
qaytaradi, so‘ngra uning qiymatini 1 ga oshiradi

Pre-increment:
Bu o‘zgarishlarning turli holatlarda qanday
natija berishini hisobga olgan holda, to‘g‘ri
qo‘llanishi muhimdir.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay