What is the order of local variables on the stack?

The order of local variable on the stack is unspecified.

It may change between different compilers, different versions or different optimization options. It may even depend on the names of the variables or other seemingly unrelated things.

Leave a Comment