title: Pre-increment and post-increment operators in Swift
body: <pre><code> //Post and Pre-Increment Test
     func FindValueOFC() -&gt; String
      {
          var a : Int = 10
          var b : Int = 20
          var c = a++ + a++ + b++ + b++ + ++a + ++b
          return "The value Of variable C is \(c)"
      }
  
      let whatsTheValueOfC = FindValueOFC()
      println(whatsTheValueOfC)
  </code></pre>
  
  <p>Why does this program prints out <code>The value Of variable C is 98</code>?
  Logically it should be 96, as <code>a++ + a++ + b++ + b++ + ++a + ++b</code> can be translated to <code>10+11+20+21+12+22 = 96</code></p>