Scanf function changes value of in-loop variable
bearophile
bearophileHUGS at lycos.com
Wed Apr 16 11:04:21 PDT 2014
Capture_A_Lag:
> After scanf in loop variable n becomes 0. Is this a bug? Please
> help me!
Have you tried to use a tmp of type int to avoid stomping?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list