Suppose the following code is embedded in an otherwise correct and complete program. Answer below the question about what version of f()is called in g().

```
void f(); //in the global namespace
namespace A
{
void f();
void g()
{
f(); //Does this call A::f()? Or the global f()?

```
a) The call is to the global f();
b) The call is to the namespace A version of f(), i.e., A::f();
c) There is an error. There is a conflict between the namespace f() and the global
f(), so there is no call made at all
d) There are other errors that prevent the code from running.


b) Code within a namespace uses names defined within the namespace.

Computer Science & Information Technology

You might also like to view...

The RPM utility is closed source software licensed by Red Hat, Inc.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Classifying end users as internal versus external is a classification by ____.

A. environment B. skill level C. frequency of use D. relationship

Computer Science & Information Technology

The rectangle that shows the outermost dimensions of any shape is called the:

What will be an ideal response?

Computer Science & Information Technology

In a live acquisition, the investigator has a good idea of what the attacker did to the system during the compromise.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology