Will the following code compile?

namespace {
  void Foo() { }
}
Explanation
Yes, it will. The Foo() function is defined in an unnamed namespace
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback