Kamaraju S Kusumanchi wrote:
H.S. wrote:
guys. In C++, do the names of arguments in a function declaration (or
prototype) need to match the names of the arguments in function
definition?


They don't need to match (either in C or in C++). The function declarations

Thanks for the detailed explanation, it is much appreciated.

are more for verifying whether you are passing the "right type of
arguments". The compilers do not check the names. In fact, you can even
omit the variable names altogether in the function declarations. For

Yup, that is know for sure.

Kind regards.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to