Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

fizzbuzz

Name: Anonymous 2012-03-13 7:15

#include <stdio.h>
int main(void) {
    int i = 0;
    char *s[] = {"%d\n", "fizz\n", "buzz\n", "fizzbuzz\n"};
    while (i++ < 100)
        printf(s[(!(i%3))|((!(i%5))<<1)], i);
    return 0;
}


http://codepad.org/nkFXJqlG

Name: Anonymous 2012-03-13 16:45

So are you retards really timing I/O? Why don't you just allocate a single huge buffer and then write the entire thing to stdout at the end? It will be a lot faster and then you can jerk off since your implementation defined behavior is faster than someone else's.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List