📜  C语言中的递增和递减运算符 - C编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:38.904000             🧑  作者: Mango

代码示例1
int x;
int y;

x = 1;

y = ++x;      // value of x = 2, y = 2
y = x++;     // value of x = 3, y = 2

x = 3;

y = x--;      //value of x =2,y =3;
y = --x;      //value of x 1, y= 1;