Xiangdong <[email protected]> writes:
> Now I see some random behavior. After compiling the code, for the same
> command line input, the output sometimes are correct (print values
> 1,2,3,4,5 with nmax=5), but sometime output all zeros (nmax is zero). I did
> not change anything, but just running same input many times.
>
> Any hints for this random behavior? Thank you.

Run with valgrind.  It is probably some other memory corruption interfering.

Attachment: pgptrG5ExCcpo.pgp
Description: PGP signature

Reply via email to