I have a large array in C (not C++ if that makes a difference). I want to initialize all members of the same value.
I could swear I
If your compiler is GCC you can use following syntax:
int array[1024] = {[0 ... 1023] = 5};
Check out detailed description: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Designated-Inits.html