The illustration shows a code segment with the lines numbered from 13 through 52 and the annotations are as follows:
"void bigGreeting( );
int main( )
{
{"
" using namespace savitch2;" annotated as "Names in this block use definitions in namespaces
savitch2, std, and the global namespace."
"greeting( );
}
{"
"using namespace savitch1;" annotated as "Names in this block use definitions in namespaces savitch1, std, and the global namespace." "greeting( );
}
bigGreeting( );"
"return 0;" annotated as "Names out here use only definitions in namespace std and the global namespace."
"}
namespace savitch1
{
void greeting( )
{
cout << "Hello from namespace savitch1.\n";
}
}
namespace savitch2
{
void greeting( )
{
cout<< "Greetings from namespace savitch2.\n";
}
}
void bigGreeting( )
{
cout<< "A Big Global Hello!\n";
}"