Pat said:
Thanks.
I want to initialize "int" and "double" arrays. In my program, they are very
big, more than 10000 entries.
Pat
Are the arrays dynamically allocated, on the stack or global?
Are they constant size?
Does you want to initialise with a single value, with calculated values,
with values read from a file, what exactly?
All these details matter, so I can't say what I would do until I know a bit
more. Even then what I would do isn't necessarily the fastest way, even if
it were fastest on my system, it might not be fastest on your system.
Undoubtedly the fastest way is to initialise an array is to get the compiler
to do it for you, but whether this is possible or not depends on the details
like those I mentioned above.
John