Adding integer value with Pointer ;
int *ptr , n; ptr = &n ; ptr = ptr + 3;
Output :
- It will Increment the pointer by 6
- For more details : Refer Formulae

Simply Learn C Programming Language | Download C Programming Books | C Programs Header Files |Chapters Organized by Topics | Tutorials | Tutors
Browse: Home > Pointer Addition: Adding integer value with Pointer
int *ptr , n; ptr = &n ; ptr = ptr + 3;
Similar Pages Pointer : Addition
Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email