To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5891
  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)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR