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.
The Answer to the Question
is below this banner.
Here's the Solution to this Question
a.Allmembersofa struct must beofdifferent types.FALSE
b. Afunctioncannotreturnavalueoftype struct.FALSE
c. Amemberofa struct can be another struct.TRUE
d. Theonlyallowable operationsona structareFalse
e. Anarraycan be amemberofa struct.TRUE
f.InC++,someaggregate operationsareallowedona struct.FALSE
g. Because a struct has a finite numberofcomponents,Falserelational operationsareallowedona struct.