Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is 16.4 violated if 16.3 is?
#1
Given the following code:
Code:
void f(int);
void f(int x){}
Does this code violate rule #16.4, identifiers used in the declaration and definition of a function shall be identical? While the lack of a parameter name in the prototype violates #16.3, I am not sure if violating #16.4 is possible in that case.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)