lawryy said:
http://computer-language-tutorials.b.../c-basics.html
The first significant technical error occurs in the first program
presented:
+++ quote begins +++
As an extreme example the following C code (mystery.c) is actually legal C
code.
#include
+++ quote ends +++
Whilst it is certainly true that #include is part of the C language (it's a
preprocessor directive), it can't appear on its own like that. Proof:
3.8.2 Source file inclusion
Constraints
A #include directive shall identify a header or source file that
can be processed by the implementation.
Thus, the absence of identification of a header or source file is a
constraint violation which requires the implementation to issue a
diagnostic message. Translation may or may not continue, at the
implementation's discretion; if it continues, the behaviour of the
resulting program is undefined.
When that one's fixed, no doubt you can persuade someone to look for the
second significant technical error. Iterate that process sufficiently
often, and you might end up with a C tutorial that's worth looking at.
But, as it stands, no.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999