-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-01-13 13:36, Helmut Karlowski wrote:(fully qualified prototype) but in C "()" equals to K&R prototype meaning"(int)".Meaning unknown.Means that in C the omission of the parameter list like void foo(); is automatically, according to the C-bible by Kernighan & Ritchie, assumed to be void (foo int);
Then this code should not compile:
void f(); <- == void f(int);
void g(void)
{
f(1,2);
}
But it does.
I would be surprised if something like
void (foo int);
is mentioned in K&R.
--
Helmut Karlowski