News for hackers. Stuff that matters.
Re:45 years since its creation. The C language still very po... by Someone on Tuesday May 24, 2016 @07:26PM (#11766415)
"C is still recognizably the same."

I wouldn't state that so categorically:

    foo(x)
    {
        return x+x;
    }
or

    bar(x)
    float x;
    {
        return x+x;
    }
If you didn't live when that was C, I'm not sure you would recognize it as such. Certainly, I could claim it was B, C's precursor and get away with it with quite a few people. It doesn't look that different from the example at https://en.m.wikipedia.org/wiki/B_(programming_language)#Exa...:

    printn(n, b) {
        extrn putchar;
        auto a;

        if (a = n / b)
            printn(a, b); /* recursive */
        putchar(n % b + '0');
    }

There are no comments on this comment yet.