3 ms·
Weirdly, those two codes behaves differently: $ gcc hn.c -O0 -o hn for (size_t i; i < (1ul<<46); i++) { printf ("%zd\n",i); acc += x;
by piadodjanho 6y ago
Weirdly, those two codes behaves differently:
$ gcc hn.c -O0 -o hn
for (size_t i; i < (1ul<<46); i++) {
printf ("%zd\n",i);
acc += x;
break;
}
Without break:
$ gcc hn.c -O0 -o hn
for (size_t i; i < (1ul<<46); i++) {
printf ("%zd\n",i);
acc += x;
}