|
-
May 27th, 2009, 03:34 PM
#1
pointers--when to use them
I am a self-taught c++ (beginner?) I have been programming for a couple of months.
I have seen, in tutorials and the such, many uses of pointers. I understand basically what they do, etc. but do you really NEED them?
Can someone give me examples of cases in which pointers are much preferred to any other type of variable access? As far as I can tell, you might as well just use the variable names.
Also, I have seen code like this:
Why is the * used?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|