diff options
author | Adam Bard <github@adambard.com> | 2016-05-02 15:15:23 -0700 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2016-05-02 15:15:23 -0700 |
commit | ef486c21197c30d39399f695bb5414b50ef6c4ac (patch) | |
tree | 8e9fe21f46a9f3b488bc766cb2ffc78a293df8e3 /csharp.html.markdown | |
parent | f18a60dff4f1315001094a2041c6d51edcbb16ec (diff) |
Clarify inc/dec operators
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r-- | csharp.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown index 7be34fb9..8d185462 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -212,10 +212,10 @@ on a new line! ""Wow!"", the masses cried"; // Incrementations int i = 0; Console.WriteLine("\n->Inc/Dec-rementation"); - Console.WriteLine(i++); //i = 1. Post-Incrementation - Console.WriteLine(++i); //i = 2. Pre-Incrementation - Console.WriteLine(i--); //i = 1. Post-Decrementation - Console.WriteLine(--i); //i = 0. Pre-Decrementation + Console.WriteLine(i++); //Prints "0", i = 1. Post-Incrementation + Console.WriteLine(++i); //Prints "2", i = 2. Pre-Incrementation + Console.WriteLine(i--); //Prints "2", i = 1. Post-Decrementation + Console.WriteLine(--i); //Prints "0", i = 0. Pre-Decrementation /////////////////////////////////////// // Control Structures |