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
int i; for (i = 0; i < ARRAY_SIZE; ++i) { myArray[i] = VALUE; }
I think this is better than
int myArray[10] = { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5...
incase the size of the array changes.