- Like any other variables pointer variables can be used in expressions.
- Every time pointer is incremented, it points to the immediate next location of its type. That is why when integer pointer is incremented it points to the address location 2 bytes after the current location.
int *pn = &n;
pn2 = pn + 1;
pd = &d;
pd2 = pd+1;
Mr. Sandeep Soni
Founder, Trainer & CEO, Deccansoft Software Services.
Sandeep has 21 yrs of experience working in various Microsoft Technologies/Platforms incl. VB6.0, ASP, VC++, VB.NET, C#. He is involved in managing and architecting projects at Deccansoft. He will be your liaison to Deccansoft, for any kind of communication and project updates. He knows what works and what doesn’t, and what practices are most suitable for design and programming with the ultimate goal of producing a quality system.