I found couple of references which show different direction of stack and heap. Is it mandatory, code section always referenced at lower memory address and command line arguments at the higher ? And also I want to know how to figure out direction of stack ?