Quote:
Originally Posted by JamesGoh
Just a simple question (which may seem silly so bear with me) that arose in my mind the other day. Do ASCII characters by themselves (e.g. /n, 0, a) have an actual memory address ?
My question arises, because Im aware that each time I create and initalise a pointer like this for example
I always get a null pointer error.
many thanks
|
Yes they do. Your declaration creates a pointer but does not constrain it to a variable of type int. Does your code compile okay and on what compiler?