Question: Multiple Choice (4 pts. each) For problems 28 through 39 use the following key for your answers A-0 B-1 C-2 D-3 E-4 AB-5 AC-6 AD-7

 Multiple Choice (4 pts. each) For problems 28 through 39 use

the following key for your answers A-0 B-1 C-2 D-3 E-4 AB-5

AC-6 AD-7 AE -8 BC-9 BD 10 BE-11 CD- 12 CE- 13

Multiple Choice (4 pts. each) For problems 28 through 39 use the following key for your answers A-0 B-1 C-2 D-3 E-4 AB-5 AC-6 AD-7 AE -8 BC-9 BD 10 BE-11 CD- 12 CE- 13 DE 14 ABCDE-none of these Consider the following program for problems 28-31 # include int funcl (int *vall, int val2) *va11 %d va12 %d ", *vall, val2); printf("in func1 if (vall1) return 1; else t *va11 *va11 / 2; return (funcl (vall,val2/2) val2--) main () int val2 = 7; int val1 5; int val3 = func1(&va11, val2); printf("p29 vall %d ", val 1); printf("p30 val2 %d ", val2); printf("p31 va13 %d ", val3); return 0;h 28. How many calls to func1() have been made by the code when (*val1 1) evaluates to true? (count the call made by main and any other calls made by funcl itsel 29. What is printed for vall by the printf labeled p29? 30. What is printed for val2 by the printf labeled p30? 31. What is printed for val3 by the printf labeled p31'? Consider the following program for problems 32 and 33 # include void func1 (int *vall, int val2) *val1 = val2 * 2; main) int val2 3; int *vall-&val2; funcl (vall, val2); printf ("*vall %d va12 return 0; %d ", *vall, val2); 32. What value is printed for *vall by the program? 33. What value is printed for val2 by the program

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!