English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

If the same size array is used several times throughout your script, you would only need to change the value of the array size in one location versus several locations. Therefore, allowing easy maintainance of your code and reducing the susceptability to errors.

2007-01-08 00:16:26 · answer #1 · answered by Kookiemon 6 · 2 0

probably depends on your environment, but i'd imagine in most cases, when you declare using a constant the space for the array is allocated at compile time, but if you use an int, it happens run time.

but i'm not sure i really understand your question

2007-01-07 22:01:12 · answer #2 · answered by Stanley 3 · 0 0

fedest.com, questions and answers