[ back to toc ]

pointers or variable

Date: 2002/04/15 11:38

Q:
I was wondering when should i use a pointer and when should i use a
variable.

e.g can i instead of ..int = b;
use int *b;
and use *b = b;
A:
Whenever you want to use a pointer I recommend that you use a pointer
variable and never write

*b = b;

as the left and right sides are incompatible.

regards,
Peter

[ back to toc ]