65.9K
CodeProject is changing. Read more.
Home

Looking at pointer declarations

starIconstarIconstarIconstarIconstarIcon

5.00/5 (2 votes)

Jan 16, 2010

CPOL
viewsIcon

6505

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