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

1. You can have a name spelled the same in two different namespaces with no conflict in your program.

2. You can use #define to define a name for a C++ variable.


1. True
Explanation: The namespace groups names together and provides an access method that allows the same name to be used in several namespaces without conflict.
2. False
Explanation: #define defines a symbol for use by the C++ preprocessor in things such as preventing multiple inclusion and turning off the assert macro. C++ has
a different syntax for defining variables. This syntax is TypeName VariableName;

Computer Science & Information Technology

You might also like to view...

MC 4DOM function________removes insignificant whitespace from an XML DOM tree.

a) strip. b) cleanup. c) StripXml. d) None of the above.

Computer Science & Information Technology

What’s the quickest way to move to the end of a file?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT a technology found in a smartphone without a separate application?

A) accelerometer B) natural user interface C) proximity detector D) remote monitoring

Computer Science & Information Technology

How is an IPv6 address written and displayed?

What will be an ideal response?

Computer Science & Information Technology