Question: Question 2 2 pts Consider again the structure declaration from Question 1. Suppose that we have added the following to make a program. Fill in

 Question 2 2 pts Consider again the structure declaration from Question

Question 2 2 pts Consider again the structure declaration from Question 1. Suppose that we have added the following to make a program. Fill in the blanks with C operators to complete the function definition: typedef struct student student; void incr_gpa (student a, student* b) { a__ gpa += 0.1; b__gpa += 0.1; int main() { student s = {"Jane Doe", 1234567, 4.0}; student t = {"John Doe", 7654321, 3.4}; incr_gpa(s, &t); printf("%. 1f", s.gpa); printf("%. 1f", t.gpa); 1st blank: 2nd blank: Now, what is the output of main? 1st output: 2nd output: (NOTES: %.1f simply restricts the printing to one digit on the right of the decimal point. You are permitted to check your answers by writing a C program; however, in order to prepare for exams, first attempt a solution without doing so.)

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 Databases Questions!