|
Re: I Have A Question About Pointers
Quote:
Originally Posted by EricVanWyk
A pointer takes up space in its own right, usually 32 or 64 bits depending on the memory map. It isn't just a compiler construct - it gets used at run time. This lets you do pointer arithmetic.
|
So my example uses 64 bits of memory from just the variables? 32 from the pointer it self, 16 from short, and another 16 from the other short. I don't know how much the streams use up.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
|