DEV Community

kenccik
kenccik

Posted on

Increment va Decrement

Increment va Decrement bu ozi bitta qiymatni qoshish yoki ayirish uchun ishlatilinadi, masalan.

#include <iostream>
using namespace std;
int main() {
int a = 32;
++a;
cout <<a;
return 0;
}
Enter fullscreen mode Exit fullscreen mode

shuday qilib qoshish mumkin ayirish uchun esa shunda oxshash qilib + ni orniga 2 ta minus qoyamiz

Top comments (0)