title: `y=++y`, is this standard compliant? [which appears in a test by Microsoft]
body: <p>I know this looks familiar but it is brought to me as a problem in a test by Microsoft to recruit interns. It seems to me that <code>y=++y</code> is not standard compliant, but I think maybe it would be better to be sure (not sure that I'm better than those who write up these tests at MS). So I'm asking your advice. Do you think expressions like this is standard-compliant and does not result in <strong>undefined behaviour</strong>?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(){
      int a = 10;
      int b = 10;
      a = ++a;    //What ???
      b = b++;    //What ???
      printf("%d %d\n",a,b);
      return 0;
  }
  </code></pre>
  
  <p><code>gcc</code> complains about it when used to compile with <code>-Wsequence-point</code>. (It is not explicitly stated whether it is a C or C++ specific problem.)</p>
  
  <p>But only four answers provided:</p>
  
  <pre><code>a) 10 10
  b) 11 10
  c) 10 11
  d) 11 11
  </code></pre>
  
  <p>Although one is not restricted to select only one answer ( so maybe I should choose all four? )</p>
  
  <p>Well, in my opinion, between self-incrementing and assignment there is no sequence point. So this violates the specification. Doesn't it?</p>