[gameprogrammer] Re: A Note on C Programming Style

Personally as soon as I saw pointers I just had to change the way that
variables are declared...

type memoryreference variablename
memoryreference tells you how the variable refers to the memory:
 : The value stored in the memory location of the variable.
*: The value stored in the location of another variable, holded in
this variable.
&: The location of this variable

And whenever you refer to a variable you also have to refer to how
it's accesing the memory, that's why if you refer to a pointer without
the * then you just get a memory location (not the value stored
there).
I might have gotten something wrong, I'm in a bit of a hurry and just
wanted to answer in how I tackled pointer syntax.


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: