>>>>> "Aryan" == Aryan Ameri <[EMAIL PROTECTED]> writes:

[...]

Aryan> About initializing the array as static, well I thought that way,
Aryan> when I reinitialize it, I would be able to save it's contents (if
Aryan> you know what I mean). I was afraid that if it was a automatic
Aryan> array, when I re-initialize it, it's contents would be gone.

Your second declaration of the array would "mask" the first
declaration.  It would just create a new array, that just happened to
have the same identifier associated with it.  It would not reallocate
the original array.  The new array would then disappear after it went
"out of scope" (i.e. after it exits the body of the while loop).
(Well, since it's static, it wouldn't disappear, AFAICT -- it would
just become inaccessible.)

-- 
Hubert Chan <[EMAIL PROTECTED]> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to