--- In [email protected], "peternilsson42" <peternilsso...@...>
wrote:
>
> Quite so and it seems you used them correctly. Nevertheless,
> your opening statement, which appears above, is still wrong.
> 
> A function declaration "with no parameter specification" is
> not a prototype of a function taking no parameters.

Correct (I didn't say it was BTW).

> > How they different to the fip and pfi prototypes in the
> > standard example?
> 
> Neither is a prototype.
> 
>   6.2.1p2 "... (A function prototype is a declaration of a
>   function that declares the types of its parameters.)"
> 
>   6.7.5.3p14 "...The empty list in a function declarator that
>   is not part of a definition of that function specifies that
>   no information about the number or types of the parameters
>   is supplied."

So the standard example:

  int *fip();

is a function declaration, but isn't a prototype? Subtle :-)

Reply via email to