2 ms·
(IMO enterprise grade C code should not have types other than int, use numbers larger than 2^15-1, or constants with more than one digit/character. This is, I'm
by perl4ever 7y ago
(IMO enterprise grade C code should not have types other than int, use numbers larger than 2^15-1, or constants with more than one digit/character. This is, I'm sure, the best way to avoid undefined behavior and concomitant nasal demons)
- perl4ever 7y agoHere's a more user-friendly version with self-explanatory parameters: f(i, j, k, l) { for (j = (j << 2) + j << 3; i + 1 && --j; f(i - 1, k, l, l)); sleep(j); } int main () { f(1, 'O', 'O', 'O'); /* Sleep for 1000 years */ }