On Apr 18, 2008, at 6:59 PM, John Chung wrote: > I would like to add that pointers can only > add/subtract the number of element from it's type Hmm. I too am pretty sure that you are allowed to subtract one pointer from another, as long as they're the same type, and you'll get an int. After all, you can add an int to a pointer, and it certainly ought to be true that: (ptr + i) - (ptr) == i; This college class page supports this (see "pointer subtaction"): http://www.cs.umd.edu/class/spring2003/cmsc311/Notes/BitOp/pointer.html BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist