Initializing arrays to zero all in one go?
Is there a way to initialize a 2D or 1D array to zeros all at the same time?
I have this:
However initially the arrays hold random numbers. I would like to set all of them to zero to keep the good practice of initializing everything before assigning.
int iterate = 0;
inputs[iterate] = x_1D;
inputs[iterate] = c_1D;
desiredOutputs[iterate] = y_1D;