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

Pages: 1-

Programs you didn't write today

Name: Anonymous 2010-10-02 17:12

Vimacs
Perrin number calculator
ncurses analogue clock
A program that flashes some lights on an Arduino
A program that disproves Fermat's last theorem.

What didn't you write today?

Name: Anonymous 2010-10-02 17:19

Everything

Name: Anonymous 2010-10-02 17:21

Vimacs
Completely unneccessary as Emacs has 2+ vi modes

Name: Anonymous 2010-10-02 17:49

This comment.

Name: Anonymous 2010-10-02 17:59

This post intentionally left blank

Name: Anonymous 2010-10-02 18:21

the following program:

#include <stdio.h>

void a(void) {
    puts("Dear Sir or Madam:\n\n");
}

int b(void) {
    return printf("HAX ");
}

void c(void) {
    printf("MY ");
}

void d(void) {
    puts("ANUS!");
}

int main(void) {
    for (a(); b(); c()) d();
    return 0;
}

no, wait...

Name: Anonymous 2010-10-02 18:44


main() {
        void a() { printf("HAX "); }
        void b() { printf("MY "); }
        void c() { printf("ANUS!\n"); }
        int (*d)() = main;
        a(), b(), c(), d();
}

EXPERT ENTERPRISE RECURSION

Name: Anonymous 2010-10-02 18:54

>>7
GCC doesn't seem to optimize the tail-call, hence the stack grows until SIGSEGV ensues.

Name: Anonymous 2010-10-02 20:37

>>8
Try putting a return on that line.

I'm not going to bother testing it.

Name: Anonymous 2011-01-31 20:45

<-- check em dubz

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