1. | What is the purpose of a structure? |
|
2. | Can a structure contain different data types? |
|
3. | What is the reason for using a typedef? |
|
4. | Where are structures usually defined? |
|
5. | How are instances of your structure made? |
|
6. | Can structures be passed as arguments to functions? |
|
7. | A typedef is a type of ____________________. |
|
8. | Can a structure by used as a return type? |
|
9. | What advantage is there to passing a structure by reference? |
|
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. |