123456789
namespace { void func();} int main(){ func(); return 0;} void func(){ /*code*/}
123456789101112131415
namespace { void func(); } void func(); //this is a different scope (global scope) int main() { func(); //this would print 1 } namespace { void func() { std::cout<<1; } }