| | Help with pointers
|
| Hi all little question: How can I ad a value to a pointer ?? int *px, x; px = &x; px = px + 1; (????? pointing to the lowbyte of x for example) Is it just NOT possible with IC or am I missunderstanding anything ???? Thanks for any help. -- Thomas (...) (26 years ago, 25-Mar-99, to lugnet.robotics.handyboard)
| | | | Re: Help with pointers
|
| (...) When you do pointer arithmatic, you work in increments of what the pointer points to. So if you have a pointer to an int, as in the above example, when you add one to it, you actually make it point to the next int, not the next byte or word. (...) (26 years ago, 25-Mar-99, to lugnet.robotics.handyboard)
| |