title: Pointer increment and decrement
body: <p>I was solving a question my teacher gave me and hit a little snag.
  I am supposed to give the output of the following code:(It's written in Turbo C++)</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  void main()
  {
      char *p = "School";
      char c;
      c=++(*(p++));
      cout&lt;&lt;c&lt;&lt;","&lt;&lt;p&lt;&lt;endl;
      cout&lt;&lt;p&lt;&lt;","&lt;&lt;++(*(p--))&lt;&lt;","&lt;&lt;++(*(p++))&lt;&lt;endl;
  
  }
  </code></pre>
  
  <p>The output the program gives is: </p>
  
  <pre><code>T,chool
  ijool,j,i
  </code></pre>
  
  <p>I got the part where the pointer <em>itself</em> increments and then increments the <em>value which the pointer points to</em>. But i don't get the part where the string prints out <strong>ijool</strong></p>
  
  <p>Can someone help me out?</p>