The argument names in the prototype do not matter, so these definitions are equivalent. However, it is good practice to put names, as they should give an idea of ββwhat the arguments are for. Technically, they are not needed, but serve as documentation.
Another thing is with the const qualifier, because it changes the value of the function.
source share