Mail Archives: djgpp/1996/11/18/11:35:12
On Sat, 16 Nov 1996, Elliott Oti wrote:
[snip]
> 10 <rubbish> <rubbish>
> It's also 10 10 10
>
> instead of
>
> 10 10 10
> It's also 10 10 10
>
> It's not a gcc bug because Borland gives a similar output,
> but -Wall gives absolutely no warnings. So what's wrong?
>
> TIA,
> Elliott
>
> void Dump(thing *V)
> {
> printf("\n%i %i %i\n",*V[0],*V[1],*V[2]);
^ ??????
Why are you using * operator. To get value of the 0 element you jaust
need V[0]. If you use *V[0] you traet V[0] as a pointer.
Regards,
Bartosz
bartosz AT bielbit DOT bielsko DOT pl
- Raw text -