Consider the following statements:struct rectangleData { double length; double width; double area; double perimeter; }; rectangleData bigRect;Which of the following statements correctly initializes the component length of bigRect?a. bigRect[0]= 10 b. bigRect.length = 10; c. length[0]= 10; d. bigRect = {10};

Respuesta :

The following statement is correct among the following: bigRect.length = 10 where the length of the rectangle can be initialized by its component length.

How to determine the correct statement for a rectangle's length?

To capture the length of the rectangle treating the rectangle variable as

bigRect to initialize the component length of bigRect

Two sides of the rectangle are Ā length and breadth

So, to calculate the length of the rectangle, since it is the component we can get the length by using bigRect.length which gives the length, in the same way to calculate the breadth we can use

bigRectbreadth.length which gives the breadth of the rectangle

In the same way we can get the area of the rectangle as bigRect.length x bigRectbreadth.length which gives the area

To know more on programming in C following this link:

https://brainly.com/question/16936315

#SPJ4

ACCESS MORE