Solved

Consider the Following Statements: Struct RectangleData

Question 28

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions