Mats,

Yah he doesn't want us to use other programs to help us.

Well it will probably be wrong but I'm going to go with it.

I tested it with:
argcValue 4290771476
argvValue 4290771480
envpValue 4290771484


and just like that diagram showed, the environment variables, and command line arguments come before everything, and will have the HIGHER addresses which they do, they have the highest out of my other current variables. But i understand what your saying about the diagram being so simple. I realize this is a much more complex issue and I'm really cutting corners.

P's address value 4290771400
x's address value 4290771396
y's address value 4290771392
z's address value 4290771388
globalVar's address value 134752
So basically I'm going to wing it.

By the way, why is it most easiest for the stack? I would think that would be hard because the stack is growing downward, and the heap is growing upward, so the heap and stack are coming into each other.

THanks for the info!