Consider the following struct definition: 
struct rectangleData{  double length;  double width;  double area;  double perimeter;
};Which of the following variable declarations is correct?

A. rectangle rectangleData;
B. struct rectangleData();
C. rectangleData myRectangle;
D. rectangleData rectangle = new rectangleData();


Answer: C

Computer Science & Information Technology

You might also like to view...

The ________ error message will appear if you reference a nonexistent function name and is typically caused by a misspelling

Fill in the blank(s) with correct word

Computer Science & Information Technology

Using CGI environment variables, write a program that logs the addresses (obtained with the REMOTE_ADDR CGI envi- ronment variable) that request information from the Web server.

What will be an ideal response?

Computer Science & Information Technology

Clicking the Totals button adds a new row to the design grid

Indicate whether the statement is true or false

Computer Science & Information Technology

What Windows 7 tool would be the fastest to use to evaluate current memory usage?

A) Task Manager B) Windows Memory Diagnostic Tool C) Device Manager D) System BIOS

Computer Science & Information Technology