Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. The following statement means that any subsequent use of GetData without qualification refers to myNames::GetData: using myNames::GetData. True or false? 2. using myNames::GetData is

1. The following statement means that any subsequent use of GetData without qualification refers to myNames::GetData: using myNames::GetData. True or false? 2. using myNames::GetData is a using declaration. True or false? 3. using namespace myName is a using directive. True or false? 4. In C++, if class X is a base class of class Y, then Y cannot directly access X's private data. True or false? 5. O(1) is called constant time. True or false? 6. How does a struct differ from a class in C++? 7.

A one dimensional array data is declared as follows:

char data[75];

The base address is 1120 and each value takes up one location in memory. What is the address of the third element? 8.

A one dimensional array data is declared as follows:

char data[4];

The base address is 2222 and each value takes up one location in memory. What is the address of the fourth element? 9.

A record is declared as follows:

struct NameType

{

char first[10];

char last[20];

int age;

}

The first letter in the first name is stored in location 1000. Each letter takes one location and an integer takes two locations. What is the address of last[2]?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+4. Can the source be presented in an attractive setting?

Answered: 1 week ago