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

1. A structure can have a member whose type is another structure.
2. Consider these hierarchical structures.
```
struct Date
{
int year;
//members
};
struct Person
{
Date birthDay;
//other members
};
Person Bill;
```
3. No special syntax is necessary to define a function that uses a structure parameter.
(This is unlike using an array parameter.)
4. There is no aggregate initialization available for structure variables. You must declare structure variables then use assignment to initialize the members.
5. A class is a type similar to a structure type that normally has member functions as well as member variables.

1. True
2. False.
3. True
4. False
5. True

Computer Science & Information Technology

You might also like to view...

A ________ is a virus that is attached to documents such as Word or Excel files

A) script virus B) polymorphic virus C) macro virus D) Trojan horse

Computer Science & Information Technology

Change tracking can only be activated in shared workbooks

Indicate whether the statement is true or false

Computer Science & Information Technology