Hi!
I have problem with POINTER.
I read two books but I did not understand the pointer.
I know that the & operator is unary operator that returns the address of its operand.
asigns the address of the variable y to pointer variable ptr.Code:int y=5; int *ptr; ptr=&y;
The question is:
when should we use a pointer?
why should we use a pointer?



LinkBack URL
About LinkBacks



Seriously, if you have to ask, you probably aren't at a point where you would care even if we told you the dozens of useful ways and reasons to use pointers.