This is not time critical, so allocating stack for int e, is not going to matter.

The main point is the two different approaches within a few lines code.