Remaining Time: 29 minutes, 05 seconds.
* Question Completion Status:
Consider the following code, which of the following statements is correct to fill the blank line (line 22) in order to call the
function find_Center.
6 struct Center {
7
double c1, c2;
8
);
9 struct Box {
10
double x, y, width, height;
11);
12
13 Center findCenter (Box b)
14 {
15
double c1 = b.x + b.width/2;
16
double c2 = b.y + b.height/2;
17
Center b_center = {c1, c2};
18
19}
return b_center;
20 int main(){
21
22
23
24
25}
Box b = {10.0, 0.0, 100, 200};
//........
cout<<"The center point = "
<<b_center.c1<<", ";
cout<<b_center.c2<<endl;
a.
Box b_center= findCenter ();
findCenter (b):