I could not help but notice this :
http://cboard.cprogramming.com/showthread.php?t=81290

I do know how functions work (parameter passing using the stack , flow of control etc) and the operations on the stack or heap, but I havent come across anything concrete that explains the exact procedure that is followed while memory is being allocated to a C program and such other things..Can someone guide me a little bit here ..