摘要: 1、 #include <stdio.h> int main(void) { char ch; scanf("%c", &ch); while(ch != 'g') { printf("%c", ch); scanf("%c", &ch); } return 0; } 阅读全文
posted @ 2021-08-15 23:08 小鲨鱼2018 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: c语言中复合赋值运算符的等级低于普通赋值运算符。 #include <stdio.h> int main(void) { int num1 = 2; int num2 = 2; num1 *= 3 + 8; // 等价于 num1 = num1 * (3 + 8);说明复合赋值运算符的优先级等于算术 阅读全文
posted @ 2021-08-15 01:19 小鲨鱼2018 阅读(557) 评论(0) 推荐(0) 编辑