I know that there are sections like Stack, Heap, Code and Data. Stack/Heap do they use the same section of memory as they can grow independently? What is this code section? When
It's mostly OS dependant.
For windows take a look at Petzold or Richter's books. For Linux you can read the source !