4 ms·
"C is still recognizably the same." I wouldn't state that so categorically: foo(x) { return x+x; } or bar(x) float x; {
by Someone 10y ago
"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)#Examples 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');
}