Mark the following statements as true or false.
a. All members of a struct must be of different types.
b. A function cannot return a value of type struct.
c. A member of a struct can be another struct.
d. The only allowable operations on a struct are assignment and member selection.
e. An array can be a member of a struct.
f. In C++, some aggregate operations are allowed on a struct.
g. Because a struct has a finite number of components, relational operations are
allowed on a struct.
a. All members of a struct must be of different types. FALSE
b. A function cannot return a value of type struct. FALSE
c. A member of a struct can be another struct. TRUE
d. The only allowable operations on a struct are False
assignment and member selection.
e. An array can be a member of a struct. TRUE
f. In C++, some aggregate operations are allowed on a struct. FALSE
g. Because a struct has a finite number of components, False
relational operations are allowed on a struct.
Comments
Leave a comment