Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / C

Looking at pointer declarations

Rate me:
Please Sign up or sign in to vote.
4.53/5 (9 votes)
12 Jan 2010CPOL 14K   6  
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...

Views

Daily Counts

License

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


Written By
Technical Lead
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions