//赋值运算符 (复合赋值符)
//复合赋值符:+= -= *= /= %=
int main()
{
int a = 1;
a = a + 1; //a += 1;
a += a; //a = a + a;
a = a - 1; //a -= 1;
a *= 1; //a = a * 1;
a = a / 1; //a /= 1;
a %= 1; //a = a % 1;
printf("%d\n", a);
return 0;
}
记录每日学习3
最新推荐文章于 2024-08-28 14:35:43 发布