c++ memory amount

Hello guys, I'm very newbie in C++ and I would like to confirm something.

Am I right if I say this as a conclusion?:

The amount of needed memory for global/local variables is assigned during compilation time.

Thanks in advance.
well, the amount needed to store any given piece of data can be determined before you even compile. The actual amount that will be allocated may be higher than that, depending on how you set the optimizations for your compiler and linker.
thanks for the data.

I thought that I could get a conclusion about the difference between the stack and the heap besides the way they work, but I think is not that simple.
Topic archived. No new replies allowed.