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

How does this work? (corrected)

Name: Anonymous 2013-02-05 14:16


#include <stdio.h>

int main ()
{
    int c, d;

    d = EOF;

    while ((c = getchar()) != EOF){
        if (c == ' ')
            if (c != d)
                putchar(' ');
        else
            putchar(c);
        d = c;
    }
    return 0;
}

Name: Anonymous 2013-02-05 18:34

ONE WORD FORCED BRACKETATION OF THE CODE THREAD OVER

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