Great Interview Question

time to read 1 min | 123 words

Here is something to add to the indicators list:

What does the following do?

selected = selected++;

If they can't figure this out, you got a problem.

More interesting question may be:

Contrast the results of the following two operations:

  • selected = selected++;
  • selected = ++selected;

[Via The Daily WTF - Sidebar]