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

fizzbuzz

Name: übermench 2011-12-26 15:04

just wanted to post my awesome fizzbuzz implementation
#include <stdio.h>
#include <stdlib.h>

void main(int j) {
  printf(((char*[]){"%d\n","fizz\n","buzz\n","fizzbuzz\n"})[!(j%3)+!(j%5)*2], j);
  (&main + (&exit - &main)*(j/100))((j+1)*(1-j/100) );
}

Name: Anonymous 2011-12-28 9:14

The reason using a non-compliant C compiler is wrong is because non-standard code will not compile on a compliant compiler. If your code is only going to compile on your compiler on your machine then go ahead and use non-standard stuff, but if you're posting it on the Internet where everyone uses different compilers, and you expect people to not be annoyed by your use of non-standard 'features', then you're a retard.

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