Steven Schveighoffer:In C/C++, the default value for doubles is 0.I think in C and C++ the default value for doubles is "uninitialized" (that is anything).
You are probably right. All I did to figure this out is print out the first element of the array in my C++ version of kai's code. So it may be arbitrarily set to 0.
-Steve