++a 和a++的区别

int a=14 int t1=a++ int t2=++a
t1和t2是多少

t1 等于14
t2 等于 16

两个都表示a自增1,但是++a表示先加后用,a++表示先用后加,可以根据+的位置来记
所以t1=14,t2=16