Do Not Do


a[n++] = b[++n];

Hint: If you know what it does, you’re wrong.

 

3 Comments

Is it still undefined behavior if n is a class with overloaded ++ operators?

Leave a comment

Name and email address are required. Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <pre> <q cite=""> <s> <strike> <strong>