Post-increment within a self-assignment
问题 I understand the differences between i++ and ++i, but I'm not quite sure why I'm getting the results below: static void Main(string[] args) { int c = 42; c = c++; Console.WriteLine(c); //Output: 42 } In the above code, as this is assigning the variable to itself and then incrementing the value, I would expect the result to be 43 . However, it is returning 42 . I get the same result when using c = c--; as well. I realise I could just simply use c++; and be done with it, but I'm more curious