s, NULL);
memset(a, 0, sizeof(a));
gettimeofday(&e, NULL);
printf(“memset 1k: %d/n”, TIMEDIFF...s, NULL);
memset(b, 0, sizeof(b));
gettimeofday(&e, NULL);
printf(“memset 1M: %d/n”, TIMEDIFF...s, NULL);
memset(c, 0, sizeof(c));
gettimeofday(&e, NULL);
printf(“memset 4M: %d/n”, TIMEDIFF...int i=0; i<sizeof(a); ++i)
a[i]=0;
gettimeofday(&e, NULL);
printf(“for 1k: %d/n”, TIMEDIFF...s, NULL);
memset(c, 0, sizeof(c));
gettimeofday(&e, NULL);
printf(“memset 4M: %d/n”, TIMEDIFF