Question: 35) 20 pts. Complete the following code: struct Girl { int fingers; int mood; }; struct Girl sing(int f, int m); void main(void) {

35) 20 pts. Complete the following code: struct Girl { int fingers;

 

35) 20 pts. Complete the following code: struct Girl { int fingers; int mood; }; struct Girl sing(int f, int m); void main(void) { Girl blue; blue = sing(5,0); // write statements to output the 2 member elements of variable blue } struct Girl sing(int f; int m) { Girl temp; // complete the code to assign f to fingers and m to mood in variable temp. temp = f; temp =m; return (temp); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!