Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Why pointers?
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 14 Topic 43298 of 47561
Post > Topic >>

Why pointers?

by saneman <yyyy@[EMAIL PROTECTED] > Feb 13, 2008 at 10:57 PM

I have written C++ code for some time now using both pointers and 
references.

I was asked what the point was in using pointers and could not give a 
short an explanatory example.

I would say that you use a pointer when data are updated across function 
calls.

But does anyone have an idea to a minimal example where its impossible 
to avoid pointer?
 




 14 Posts in Topic:
Why pointers?
saneman <yyyy@[EMAIL P  2008-02-13 22:57:38 
Re: Why pointers?
pastbin@[EMAIL PROTECTED]  2008-02-13 14:02:14 
Re: Why pointers?
saneman <yyyy@[EMAIL P  2008-02-13 23:11:09 
Re: Why pointers?
"Daniel T." <  2008-02-13 19:02:44 
Re: Why pointers?
saneman <yyyy@[EMAIL P  2008-02-14 10:29:44 
Re: Why pointers?
"Daniel T." <  2008-02-15 07:19:02 
Re: Why pointers?
arnuld <nanga@[EMAIL P  2008-02-27 11:55:45 
Re: Why pointers?
Szabolcs Ferenczi <sza  2008-02-13 14:24:25 
Re: Why pointers?
Salt_Peter <pj_hern@[E  2008-02-14 00:45:24 
Re: Why pointers?
=?UTF-8?B?RXJpayBXaWtzdHL  2008-02-13 22:28:30 
Re: Why pointers?
Jeff Schwab <jeff@[EMA  2008-02-13 18:12:13 
Re: Why pointers?
Juha Nieminen <nospam@  2008-02-14 14:00:10 
Re: Why pointers?
Lionel B <me@[EMAIL PR  2008-02-14 15:35:15 
Re: Why pointers?
Pete Becker <pete@[EMA  2008-02-14 12:56:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 3:53:45 CDT 2008.