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
Cutting through all the chatter, the short answer is that if you turn on optimization at compile time you won't do better than this:
int i,value=5,array[1000]; for(i=0;i<1000;i++) array[i]=value;
Added bonus: the code is actually legible :)