Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C / C++ Language » General » Alternatives
 
Alternatives (1)

Tagged as

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...

Alternatives

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

15 Jan 2010
avinash064
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...

License

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

Share

About the Author

Rejeesh.T.S
Technical Lead
India India
No Biography provided

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