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 21:06

>>77
what kind of humongous faggot would use -pedantic?

Name: >>77 2011-12-28 21:42

>>81

I thoought it might have been the old version, but when I compile that code without the -pedantic flag, it works fine and doesn't complain about the nested function. One would expect the -ansi flag to be sufficient. But oh well. I guess if you want your code to be portable across compilers, you better use -pedantic.

Name: >>82 2011-12-28 21:53

Name: Anonymous 2011-12-29 0:36

>>69
You're using a different language, whatever piece of shit toy language you're using it does not conform to the C standard, therefore it must be a different language.

Name: Anonymous 2011-12-29 0:43

>>84
GNU GCC C is a toy language, say it faggot. FUCKING SAY IT

Name: Anonymous 2011-12-29 0:52

>>85
ANSI C is a faggot toy language, real men use GNU C.

Name: Anonymous 2011-12-29 0:55

>>86
K & R C > ANSI C > ISO C > GNU C > TOY LANGUAGE C

Name: Anonymous 2011-12-29 1:00

>>87
you must be a faggot. enjoy your AIDS

Name: Anonymous 2011-12-29 1:36

Name: Anonymous 2011-12-29 5:28

>>87
In 1983, the American National Standards Institute (ANSI) formed a committee, X3J11, to establish a standard specification of C. In 1989, the standard was ratified as ANSI X3.159-1989 "Programming Language C". This version of the language is often referred to as ANSI C, Standard C, or sometimes C89.

In 1990, the ANSI C standard (with formatting changes) was adopted by the International Organization for Standardization (ISO) as ISO/IEC 9899:1990, which is sometimes called C90. Therefore, the terms "C89" and "C90" refer to the same programming language.

ANSI, like other national standards bodies, no longer develops the C standard independently, but defers to the ISO C standard. National adoption of updates to the international standard typically occurs within a year of ISO publication.

`
>implying ANSI C != ISO C

Name: Anonymous 2011-12-29 7:05

>>88
No.

Name: Anonymous 2011-12-29 10:37

>>85
GNU-C is not a toy language, it has a well adopted standard, every major compiler supports it.

The shit you're using is a shitty toy language, and you're a fucking retard.

Name: Anonymous 2011-12-29 14:23

>>92
every major compiler supports it

which is why there are things you can do in the GNU preprocessor and not in any other compilers preprocessor... right?

moron stop using your toy languages and use Standard C

Name: Anonymous 2011-12-29 14:25

This thread was about fizz, you guys should be ashamed of yourselves.

Name: Anonymous 2011-12-29 15:21

Yall niggas postin in a fag thread.

Name: Anonymous 2011-12-29 19:38

>>93
implying GNU C is a toy

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