Click here to Skip to main content
13,093,097 members (64,074 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

2.9K views
2 bookmarked
Posted 15 Jan 2010

Looking at pointer declarations

, 15 Jan 2010
Rate this:
Please Sign up or sign in to vote.
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...
It is very simple :laugh: and fun ..

just divide the line before and after * , like

const int * p

const 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 point to different address .

simiarly

int * const p

same way ...

go to here for best explanation understand pointer

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
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralReason for my vote of 5 nice Pin
Heaven202020-Jun-11 4:32
memberHeaven202020-Jun-11 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 16 Jan 2010
Article Copyright 2010 by avinash064
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid