title: Need an explanation for the output of the program.in
body: <p>While looking at some conceptual questions in C,I came across this question in a book.
  What is the output of the following program ?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  int main()
  {
      static char s[25]="The cocaine man";
      int i=0;
      char ch;
      ch=s[++i];
      printf("%c",ch);
      ch=s[i++];
      printf("%c",ch);
      ch=i++[s];
      printf("%c",ch);
      ch= ++i[s];
      printf("%c\n",ch);
      return 0;
  }
  </code></pre>
  
  <p>Answer :</p>
  
  <pre><code> hhe!
  </code></pre>
  
  <p>Can anyone please explain how this output came ?</p>