According to this movie (around minute 38), if I have two functions with the same local vars, they will use the same space. So the following program, should print 5
5
It's undefined behavior. An uninitialized local variable has an indeterminate value, and using it will lead to undefined behavior.