0 оценок0% нашли этот документ полезным (0 голосов)
9 просмотров1 страница
This document provides instructions for Assignment A in Unit 10, which asks students to mark 6 statements as true or false about structs in C++. The statements cover topics like the types of members in a struct, returning structs from functions, nested structs, allowed operations on structs, arrays as struct members, and aggregate operations on structs. Students are to submit their answers using a provided link by Sunday for a total of 12 points.
This document provides instructions for Assignment A in Unit 10, which asks students to mark 6 statements as true or false about structs in C++. The statements cover topics like the types of members in a struct, returning structs from functions, nested structs, allowed operations on structs, arrays as struct members, and aggregate operations on structs. Students are to submit their answers using a provided link by Sunday for a total of 12 points.
This document provides instructions for Assignment A in Unit 10, which asks students to mark 6 statements as true or false about structs in C++. The statements cover topics like the types of members in a struct, returning structs from functions, nested structs, allowed operations on structs, arrays as struct members, and aggregate operations on structs. Students are to submit their answers using a provided link by Sunday for a total of 12 points.
a. All members of a struct must be of different types (2 points) b. A function cannot return a value of type struct (2 points) c. A member of a struct can be another struct (2 points) d. The only allowable operations on a struct are assignment and member selection (2 points) e. An array can be a member of a struct (2 points) f. In C++, some aggregate operations are allowed on a struct (2 points) Submit your assignment using the link above (due on Sunday of this unit; 12 points). Answers: a. b. c. d. e. f.