in reply to Re: Array
in thread Traverse and calculate in 2D array

Do you know why your routine is returning this data:
0 258381720 -100889581 0 258385268 -100885569
instead of:
0 258381720 4194077715 0 258385268 4194081727
Thanks in advance

Replies are listed 'Best First'.
Re: Re: Re: Array
by fruiture (Curate) on Nov 27, 2002 at 19:44 UTC

    Because 4194081727 needs 32 Bit to be stored correctly as number. Looks like the '%d' template wants a smaller int. Using '%s' will help.

    --
    http://fruiture.de