Is the following code legal in C++?
void f(void* = 0) {} int main() { f(); }
Which page of the C++ standard states that this usage is lega
Yes, it is legal. The syntax productions given for function parameters in clause 8.3.5/1 allow a parameter declaration without an identifier, but with an assignment expression (as initialiser).