Walter Bormans
Nov 7 · 1 min read

You misunderstood the point of the pseudocode, which is why it doesn’t make sense.

int foo = 5;
int bar = foo++;

In this case, bar would end up being 5, whereas foo is 6. This is what the author meant to imply with the example he gave. The pseudo code he gave was an implementation of the ++ post-increment operator.

Of course, the example is contrived because foo doesn’t compile to C or C++ code anyway, it compiles to machine code, which doesn’t use return, or int, or whatever.

    Walter Bormans

    Written by

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade