C++ Notes: Array Initialization has a nice list over initialization of arrays. I have a
int array[100] = {-1};
expecting it to be full with
For the case of an array of single-byte elements, you can use memset to set all elements to the same value.
There's an example here.