double d[10]; int length = 10; memset(d, length * sizeof(double), 0); //or for (int i = length; i--;) d[i] = 0.0;
c c++ optimization performance
c ×1
c++ ×1
optimization ×1
performance ×1