++[搜狗百科] //先用后加与先加后用
1 int a = 7; 2 int b = ++a; //int b = a += 1; 3 int c = a++; //int c = a; a++; 4 Console.WriteLine("{0} {1} {2}",a,b,c); //9 8 8 5 6 int i = 1; 7 Console.WriteLine("{0} {1}",i++,i); //1 2
使用等价思维、反向推导验证等方法可以帮助你更深入理解~
标签:搜狗,Console,WriteLine,++,int,后加 From: https://www.cnblogs.com/ihoi/p/16952229.html