1. Given the following piece of code, provide the results of the printfs ) or as
ID: 3590997 • Letter: 1
Question
1. Given the following piece of code, provide the results of the printfs ) or assignment statements as requested. The *blank*/ comment indicates that you need to show the actual output of that print ) on that line. Assume that the variables "result", numberl", and number2" have addresses of 7666100, 7666088, and 7666076, respectively. The first line has been done for you. Each line is worth 2 points (yes, you receive 1 free pt ) include void integer multiplication int res, int numl, int num2) int main (void) int result-0, nunberl 12, number2 6,numl ptrNULL nun2 ptrNULL ("Result: ("Addresses %d, %d, %d, %d ", , result, Number1: Result: Number2: Number1 : number1, %d ", number2); /*blank 1*/ /*blank 2*/ printf printf of Number2: &result;, &number;, &number2;); /*blank /*blank 3*/ / num1 ptrnumberli num2_ptr . &number2; integer-multiplication &result;, print f ("Addresses of Result: %d, numl-ptr, num2_ptr); /blank 5./ /blank 6/ Number2: d ", result, &number1;, &number;? Numbe r 1: Number2: §d, §din", printf ("Result: %d, Number!: %d, result, number 1, number2); return 0 void integer mltsplication (int e, int num, int num2) /blank 7 printf ("Res: %d, Num1: %d, Num2: %d ", res, nutnl, num2); /blank 8 printf ("Result of multiplying d by d is d ", "num1, "num2, "rea Answers: blank 1* jwblank 2*/ *blank 3* What is the actual contents of numl ptr? *blank 4 Mblank 5* *blank 6* blank 7* *blank 8*Explanation / Answer
blank2 Address of Result: 7666100, Number1: 7666088, Number2: 7666076
blank3 Actual content is 7666088
blank4 Actual content is 7666076
blank5 Address of Result: 7666100, Number1: 7666088, Number2: 7666076
blank6 Result: 72, Number1: 12, Number2: 6
blank7 Res: 7666100, Num1: 7666088, Num2: 7666076
blank8 Result of multiplying 12 by 6 is 72
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.