Local variables are dynamic, they're placed on the stack, for example when there is no unused cpu-register or it is an array, structure..
but of course, there are myriads other possibilities to...