Monday, June 7, 2010

Unnamed Namespace

Question

Do you think the following C++ program will compile ? If yes, then will it execute without any errors ? It yes, then what is the output on the screen ?


Answer

1 comment:

  1. 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"

    ReplyDelete