In C++, the integer variable
bar evaluates to 1 in this code
int foo = 0; int bar = ++foo;
and 0 in this code
int foo = 0; int bar = foo++;
Is this behavior prevalent in most popular languages?
The C-like languages, such as C++, Java, and C# all have this behavior.
The definitely not C-like languages such as ruby or python typically don't have an increment or decrement operator whatsoever.
So many popular languages do have this behavior, but other popular languages don't have those operators at all.