KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The following is a perfectly legal C++ code void foo (int) { cout << "Yo!" << endl; } int main (int argc, char const *argv[]) { foo(5); return 0; } I wonder, if there a value to ever leave unnamed parameters in functions, given the fact that they can't be referenced from within the function. Why is this legal to begin with?
Tags (comma-separated)
Save Edits
Cancel