Wang Yip <> writes:
> Hi yet I not understand... How to pass a Void argument.
There is no such thing as a void argument. As I explained, in
"int main(void)" the "(void)" is a special-case syntax that means
that the function takes no arguments.
> In the code I use small letters but I find clearer to write with big
> letters Void to show is C type not word. I can not afford book... pls
> send a rapidshare link for "The C Programming Language" thanks......
[...]
Again, please don't top-post. Your response belongs *below* any
quoted text, not above it. Please read the following links before
posting again:
http://www.caliburn.nl/topposting.html
http://www.cpax.org.uk/prg/writings/topposting.php
Capitalizing words such as "void" and "main" that are inherently
lowercase is not helpful, and will only cause confusion. If you
want to make it clear that you're referring to a C keyword or
identifier rather than an English word, find some other way to
do it; quotation marks are usually a reasonable way to do this.
In this context, though, even that probably isn't necessary; it's
clear enough from context what void and main mean.
I already cited questions 18.9 and 18.10 of the comp.lang.c FAQ,
<http://www.c-faq.com/>. If you had read them, you would have
found several online tutorials. I don't know what "rapidshare" is,
but as far as I know there are no *legitimate* copies of K&R2 other
than printed ones, and I won't help you obtain an illegitimate copy.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"