Per tutti quelli non abituati agli operatori unari...

Share on:

Per Michele e chi più in generale non proviene da C/C++...

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]

Fonte: Great Interview Question

Post originale