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

Tagged as

Looking at pointer declarations

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

Alternatives

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

12 Jan 2010
Rejeesh.T.S
1 alternative  
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...

License

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

Share

About the Author

avinash064

United States United States
No Biography provided

| | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 16 Jan 2010
Article Copyright 2010 by avinash064
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid