Delete unused argument names in function definition(coding standards).
c++
Solution
Unnamed formal parameter with a default value equal to 0.
First case (most popular) is an usage in `function-declaration`, something like
int increment(int, int = 0);
and in definition parameter will be named.
int increment(int number, int power)
{
//
}
Second case is an usage for debug purposes, or for some features, that are not implemented yet, or for dummy functions.
Problem
Herb Suttter C++ coding standards says, It is good practice to delete unused argument names in functions to write zero warning program. Example: ``` int increment(int number, int power=0){ return number++; } ``` should be ``` int increment(int number, int /*power*/=0){ return number++; } ``` If there is 'unused variable warning' to `power` argument. This works fine for programs (no compile errors), So new function definitions will be `int increment(int number, int =0)` So what does `int=0` mean to compiler?