int f[10]; 想把每个元素真正置为 1。下列写法正确的是( )。 A. fill(f, f + 10, 1); B. memset(f, 1, sizeof(f)); C. memset(f, 1, 10); D. fill(f + 1, f + 10, 1);