title: How the local variable stored in stack
body: <p>for the program, local variables are defined and allocated in stack, but, I just wonder the order in defining the local variables is not the same with the order using it. 
  For example, in the main function, int a b c is defined, as described, a b c is allocated in stack, which means if variable a is located in the bottom of stack, but when variable is used first, how pop a out from the stack? 
  Or ebp point to the location where all variables has been stored?</p>