Possible Duplicate:
Should function declarations include parameter names?
In a C++ header file, you need to give the function prototype’s name, return type and arguments’ types. You need not specify the names for the arguments.
Example:
double fraction(double numerator, double denominator);
vs
double fraction(double, double);
Is there an advantage in writing an argument’s name? Readability?
Is there any difference for compiling, or for efficiency, or else?
No difference in compilation. (May be parsing of later will be fast as it has to parse less code, but who cares about that?).
The big advantage is in readability. In second case how can the user differentiate between which is numerator and which is denominator?