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

1. A pointer is an address, an address is an integer, but a pointer is not an integer.

2. You can get a pointer value to initialize a pointer variable from an object of an appropriate type with the “address-of” operator, &.


1. True
Explanation: Not crazy, rather this is an abstraction. The type system in C++ is sufficiently strong that it requires that you not assign pointer values to other types nor other types to pointers (without a cast, but that tells the compiler you know what you are doing, so it lets you.)
2. True
Explanation: Every object has a value and an address. The & “address-of” operator extracts the address to make it available to initialize a pointer variable of appropriate type. Example: int x; int *ptrX = &x;

Computer Science & Information Technology

You might also like to view...

Describe the similarities and differences between these utilities:

a. scp and ftp b. ssh and telnet

Computer Science & Information Technology

Case Question 2Jenna has recently been hired to update a company's Web site, specifically to improve the appearance, consistency, and readability of its pages.When using the property that controls the amount of white space between letters in a word, setting a negative value will ____.

A. increase spacing between letters B. decrease spacing between letters C. keep spacing the same D. make text harder to read

Computer Science & Information Technology

A custom slide show is saved as a separate presentation on your computer.

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

Computer Science & Information Technology

Which key incident management personnel represents the central point of contact for all incidents?

A) Incident response coordinators B) Designated incident handlers C) Incident response team members D) External advisors

Computer Science & Information Technology