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

1. An unnamed namespace provides a facility for collecting names that are local to the file where the unnamed namespace is located. Such names are available in that file, and are unavailable in any other file.

2. A function defined inside an unnamed namespace requires qualification.


1. True
Explanation: The names in an unnamed namespace can be reused in another unnamed namespace that is located in another file with no chance of name clash.
2. False
Explanation: An unnamed namespace grouping behaves as if the unnamed namespace were named with a name that is not used anywhere else in the program, perhaps unique_1 . The rest of the file behaves as if it had the directive,
using namespace unique_1;
so that the names from the namespace can be used in the file, but are unavailable in any other file.

Computer Science & Information Technology

You might also like to view...

List all the possible routes from LAN B to LAN D in the network shown in Figure 8-12.

Figure 8-12

Computer Science & Information Technology

You CANNOT type your own text in headers and footers

Indicate whether the statement is true or false

Computer Science & Information Technology

A chart sheet contains gridlines

Indicate whether the statement is true or false

Computer Science & Information Technology

The Windows _______ program can be used to partition a second hard drive or partitions other than the first partition on the first installed hard drive

Fill in the blank(s) with correct word

Computer Science & Information Technology