Example
int
main(
int
argc,
char
* argv[])
{
double
array[2] = {1.0, 2};
return
0;
}
Solution
Allow the initalizer to set the magnitude of the array.
int
main(
int
argc,
char
* argv[])
{
double
array[] = {1.0, 2};
return
0;
}