Will the following code compile?

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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback