i++和++i,i--和--i
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestValue
{
class Program
{
static void Main(string[] args)
{
int i = 10;
Console.WriteLine(i++);
Console.WriteLine(++i);
Console.WriteLine(i--);
Console.WriteLine(--i);
Console.ReadLine();
}
}
}
结果:
10
12
12
10