DEV Community

Firdavs Mukhsimov
Firdavs Mukhsimov

Posted on

0perators (Advanced)

a) += operatori qanday ishlaydi? Misol keltiring.

Javob: x += y == x = x + y;

Enter fullscreen mode Exit fullscreen mode

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

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.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)