Jay Nabonne said:
Simplistically, to me "legal" means "a compilable, runnable program". The
program as is will compile and run. It just won't do what I believed the
person creating the question meant it would do (it prints out the address
That's the problem with programs: They don't do what the programmer
_wanted_ it to do, but it will do what the programmer _told_ it to ;-)
of the function instead of invoking it). But there's nothing illegal about
it. It's a question of desired effect. Someone could quite easily want to
do the above in a debugging situation.
The question had some hint on _why_ the answer should be FALSE or TRUE
and this has nothing to do with the number of arguments.
You are correct. I guess I should have more clearly said "The trailing
semi-colon on the "funcTest" line results in a *subsequent* syntax error."
Since the question stated this was supposed to be a definition (not a
declaration), I assumed the semi-colon was the erroneous part, not the
block following.
Semantically, it is, but syntactically it is not. We should try to be
exact-to-the-word in this group, shouldn't we?
Thanks. That was a rhetorical question to the previous caller.
*g*
I didn't mean to criticize you, it was meant to make the topic a little
bit clearer to the previous poster just in case he didn't get your
rhetoric.
Markus