Click here to Skip to main content
11,934,809 members (39,926 online)
Click here to Skip to main content
Articles » Languages » C / C++ Language » General » Alternatives
Alternatives (1)
Add your own
alternative version

Tagged as


6 bookmarked

Looking at pointer declarations

, 12 Jan 2010 CPOL
When we look at pointer declarations, reading from right-to-left gives a better idea about what the pointer actually points to. Consider const int * p; if we read right to left: p -> * -> int -> const. i.e. 'p is a pointer to an integer constant' rather than 'constant integer pointer' (if we...


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

15 Jan 2010
It is very simple :laugh: and fun ..just divide the line before and after * , likeconst int * pconst int (before *) represent [constant integer]and *p represent a pointer add both u get a pointer pointing to a constant integer , it means u can't change value but pointer can...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Technical Lead
India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web04 | 2.8.151126.1 | Last Updated 13 Jan 2010
Article Copyright 2010 by Rejeesh.T.S
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid