Decrementation of Pointer Variable Depends Upon :
- data type of the Pointer variable
Formula : ( After incrementing )
new value = ( current address in Pointer ) - i * size_of ( data type )
Data Type | Older Address stored in pointer | Next Address stored in pointer after incrementing (ptr--) |
int | 1000 | 0998 |
float | 1000 | 0996 |
char | 1000 | 0999 |
Explanation :
- Decrementing a pointer to an integer data will cause its value to be decremented by 2
- This differs from compiler to compiler as memory required to store integer vary compiler to compiler

3 Comments:
Hi everyone! I do not know where to start but hope this site will be useful for me.
In first steps it is very good if someone supports you, so hope to meet friendly and helpful people here. Let me know if I can help you.
Thanks and good luck everyone! ;)
Hello there everyone, I just signed up on this marvelous community forum and desired to say hello! Have a memorable day!
What's up
This forum rocks.. I really liked it...
Arrivederci
[URL=http://www.vpnmaster.com][IMG]http://openvpn.net/archive/openvpn-users/2005-05/pngd55nFojmJX.png[/IMG][/URL]
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