13. Operators(Advanced)

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.



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.