Re: explanation needed on const pointers



On Wed, 15 Feb 2006 23:20:17 -0800, deepunayak@xxxxxxxxx wrote:

I need complete explanation on constant pointers.

Ah, you'll need a good book for that.

char *const ptr ;
const char *ptr ;
char *const* ptr;

please explain me the differences.

If you use the rule I outlined in:

http://groups.google.co.uk/group/comp.lang.c/browse_thread/thread/860be00649b49b4a/e44e3d249f1cd41f?lnk=st&rnum=1&hl=en#e44e3d249f1cd41f

you can read these as English words which will help to get you started.

<OT>What is the best way to reference a previous posting? The above
looks horrible and I can't from the style is the URI in long-lived or
not.</OT>

--
Ben.

.



Relevant Pages