// Replace [ with less than symbol // Replace ] with greater than symbol #include [iostream] using namespace std; namespace { void hi() { cout [[ "Hello from unnamed namespace\n"; } } class A { public : A() { hi; hi(); } }; int main() { A a; return 0; }
Posting this on behalf of Kalpana.It compiles but might get warning for the statement hi;, program should work fine otherwise and output should be "Hello from unnamed namespace"
Posting this on behalf of Kalpana.
ReplyDeleteIt compiles but might get warning for the statement hi;, program should work fine otherwise and output should be "Hello from unnamed namespace"