In my program, I am trying to fill a 2-dimensional array of doubles with the constant value of DBL_MAX
. However, when I debug my code, I find that the array is filled with the value of 0, not DBL_MAX
, even after I step past the array-filling code. Is there something I am doing wrong?
Here is my code for filling the double 2d array
double array[150][150];
memset(array, DBL_MAX, sizeof(array));
Aucun commentaire:
Enregistrer un commentaire