Mail Archives: djgpp/1997/02/20/10:08:44
Benjamin D Chambers wrote:
>
> Sorry to follow up to my own post, but...
> The problem seemed to go away when I used &buf[10] instead of buf+40.
> Don't ask me why.
>
> ..Chambers
I didn't see the original post but.. assuming you have 'int buf[20];'
then &buf[10] is the address of the 11th element. If you want the same
with arithmetic, buf+10 will give you the same address. Note that both
values will be of type (int *).
--
Joe Wright mailto:wrightj AT exis DOT net
"Everything should be made as simple as possible, but not simpler."
--Albert Einstein--
- Raw text -