Re:Why does this C program compile?
by Retric on Wednesday December 19, 2012 @03:59PM
(#4944796)
It can be really hard to Google things when you don't know the terms involved. Until, someone posts source code and you get directed to stack overflow etc. Thus, the fact that out of millions of people with some familiarity with C 100 or 1000 chose to up vote an obvious post does not really seem that strange.
[ Parent
| on HN ]
Thing is, the C standard (compared to many other standards) isn't even that complicated. Googling for the C standard doc, and then grepping through for "function declaration" would likely clear that up.
But it's way easier to consult the lazyweb than to do your own research.
Searching for "C standard doc" does not actually work.
"C99 standard doc" let's you find http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf but searching for "function declaration" does not take you anywhere useful.
That's not to say reading the whole thing is a waste of time, just beyond the scope of most new programmers.
You don't even have to Google it. The Wikipedia article on C talks about K&R C vs. modern C:
https://en.wikipedia.org/wiki/C_%28programming_language%29#K...