Chapter 8


1.

What is the purpose of a structure?

to allow you to group related data under a common variable name.

2.

Can a structure contain different data types?

yes

3.

What is the reason for using a typedef?

to give a different name to an existing data type

4.

Where are structures usually defined?

in a header file

5.

How are instances of your structure made?

the same way standard variables are made

6.

Can structures be passed as arguments to functions?

yes

7.

A typedef is a type of ____________________.

variable declaration

8.

Can a structure by used as a return type?

yes

9.

What advantage is there to passing a structure by reference?

you can get the data to pass the answers in a single structure.

Answers

1.

To allow you to group related data under a common variable name.

2.

Yes

3.

To give a different name to an existing data type

4.

In a header file

5.

The same way standard variables are made

6.

Yes

7.

variable declaration

8.

Yes

9.

You can get the data to pass the answers in a single structure.




C++ Programming Fundamentals
C++ Programming Fundamentals (Cyberrookies)
ISBN: 1584502371
EAN: 2147483647
Year: 2005
Pages: 197
Authors: Chuck Easttom

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net