Multiple Choice
Consider the following statements: struct rectangleData
{
Double length;
Double width;
Double area;
Double perimeter;
};
RectangleData bigRect;
RectangleData smallRect;
Which of the following statements is legal in C++?
A) if (bigRect == smallRect)
B) if (bigRect != smallRect)
C) if (bigRect.length == width)
D) if (bigRect.length == smallRect.width)
Correct Answer:

Verified
Correct Answer:
Verified
Q2: You can use an assignment statement to
Q9: Memory is allocated for struct variables only
Q17: A function can return a value of
Q19: To compare struct variables, you compare them
Q27: The following statement defines a struct houseType
Q27: The syntax for accessing a struct member
Q34: A list has two items associated with
Q36: Relational operations can be used on struct
Q37: In C++, the _ symbol is an
Q38: Which of the following aggregate operations can