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 5:31

>>50
Are you calling C a toy language now?

>>49
I am someone clearly smarter than you

>>48
u mad?

Name: Anonymous 2011-12-28 5:59

>>51
Are you calling C a toy language now?
No, the language you're using a silly toy language, it's not C.
C is a good language.

Name: Anonymous 2011-12-28 7:48

>>51
u mad

And that's how all arguments of >>51-san became meaningless.

back to /b/ with you

Name: Anonymous 2011-12-28 8:07

>>51,53
/polecat kebabs/

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.

Name: Anonymous 2011-12-28 11:59

>>53-54 fuck off and die you fucking fagstorm

>>55
A useful subset of GNU C is followed by gcc itself, clang and tcc.

Name: Anonymous 2011-12-28 13:28

>>56
A useful subset of GNU C is followed by gcc itself, clang and tcc.
ICC as well, and that's because most of the GNU extensions are sane and useful, your shitty broken preprocessor isn't, it's fucking harmful and retarded. So fuck off with your toy language you piece of shit moron.

Name: Anonymous 2011-12-28 13:40

Check your lips at the door woman, shake your hips like battleships.

Name: Anonymous 2011-12-28 14:19

>>57
Post >>56 was the first one I made in this thread, ``fatflaps''.

Name: Anonymous 2011-12-28 14:21

>>59
Inconsequential, you're still a fucking retard.

The discussion was about a non-compliant compiler, the ones you posted are compliant, just to another language, GNU-C.

Name: Anonymous 2011-12-28 14:24

>>1..1000
fuck off, fuckfucks.

Name: Anonymous 2011-12-28 14:25

>>60
Fuck you man, I'm high and trolling your faggot ass is my highlight of the day.

Name: Anonymous 2011-12-28 15:02

not enough python

Name: Anonymous 2011-12-28 15:17

This thread?

PROG QUALITY!

Name: Anonymous 2011-12-28 15:43

for i = 0,99 do print(({"fizz","buzz","fizzbuzz"})[math.floor(0x30490610/2^(i*2%30)%4)] or i+1) end
Terrible! back to javascript!

Name: Anonymous 2011-12-28 16:06

I ran this code and it hacked my virus.

Name: Anonymous 2011-12-28 16:31

>>62
>>60
>>55
Y'all niggas so mad. I use gcc just like you, but I pipe my files through my perl preprocessor script which then compiles via gcc. Keep on hatin

Name: Anonymous 2011-12-28 16:32

>>67
That still doesn't make it C, or non-shit.

Name: Anonymous 2011-12-28 16:37

>>68
Changing preprocessor rules =/= making a new language

To you anyone that uses non-standard C is then using some silly toy language.

Name: Anonymous 2011-12-28 16:41

>>69
Standard C preprocessor is a separate language to Standard C. You are using non-standard C preprocessor, which is yet another language; the third language referenced in this post.

Name: Anonymous 2011-12-28 16:43

>>70
Reference my anus.

Name: Anonymous 2011-12-28 16:55

>>71
________________________________
[1] ISO/IEC 9899:1990
[2] ISO/IEC 9899:1999
[3] http://en.wikipedia.org/wiki/C_preprocessor -- The
language of preprocessor directives ...

Name: Anonymous 2011-12-28 17:33

I hope you guys don't use that toy language that's gnu gcc C with their non-standard preprocessor abilities.

Name: Anonymous 2011-12-28 17:34

>>73
fuck you M$ fag$torm

Name: Anonymous 2011-12-28 18:01

>>74
if you're going to whine about someone elses non-standard use then don't be a hypocrite and do it yourself with GNU gcc shit.

I'm ashamed to even hear that /prog/iganites are using gcc freedom at all costs

Name: Anonymous 2011-12-28 18:22

>>75

It's ok if your code remains within the standard, and you can give gcc options to only accept standard C (although in my experience, it still accepts things like nested functions in ansi mode).

Name: Anonymous 2011-12-28 19:54

Name: Anonymous 2011-12-28 20:09

>>77

                  / ̄∧_∧ ̄ ̄ ̄ // ̄\\
           __ ⊂/__(´∀` )__  /_⊃___| |\フ ヽ  CFLAGS JUST KICKED
       ,  ´_  /   / ̄ ̄ __ / ̄ ヽ    __ヽ ̄ ̄ |  IN, YO!
      /∠__/―/-。―/――∠_/__∧  |       | ∧_.| 
      ,========――´=============/⌒ヽ=|.=====| | ヽ ̄〕 
      | _   |GENTOO|    _  ″  |⌒| |/   __ /|  )ノ    vroom
      )_旧_∈≡≡≡≡∋_旧_″_|| ノ丿_ -――┘ 丿      vroom!
       \ \_ノ  ̄ ̄ ̄三三三\ \_ノ    三三三三 
        三三三三三三三三三三三三三三三三三三三三三三三三
           三三三三三三三三三三三三三三三三三三三三三三三
              三三三三三三三三三三三三三三三三三三三三三三三三三三
                      三三三三三三三三三三三三三三三三三三
                            三三三三三三三三三三三

Name: Anonymous 2011-12-28 20:58

>>78
Nice kopipe, ``faggot''.

Name: Anonymous 2011-12-28 21:03

>>77

it was around three years ago.

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