运算符(1)
1.特殊运算符:() . -> []
2.算术运算符:+ - * % / ++ --
3.关系运算符: > >= < <= = == !=
4.位操作运算符: & ^ | << >>
5.逻辑运算符:&& || !
6.条件运算符: ?:
7.赋值运算符:= += -= %= /= *=
8. ++在后,先用变量值,再相加
#include<stdio.h>
int main()
{
int a = 1; //定义整型变量a =1
int b; //定义整型变量b
b = a++; //将b 赋值为a++
printf("b = % d, a = % d", a, b++);
return 0;
}
结果:b=2 ,a=1
标签:++,基础,笔记,运算符,int,整型,赋值 From: https://www.cnblogs.com/charmLuo/p/17398209.html