Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer questions 1-3 in C. Accessing the contents of a money cell through a poin

ID: 3775087 • Letter: A

Question

answer questions 1-3 in C.

Accessing the contents of a money cell through a pointer variable that stores its address is called _______. indirect reference subscript reference direct reference indirect addressing Consider the following function: void translate (int *px, int *py, int dx, int dy) {*py += dy;} Which of the following statement(s) are correct? dx is an input parameter px is an out parameter px is an in-out parameter py is an in-out parameter py is an input parameter Consider the following declarations: int x = 101; int *px = &x; At runtime, variable x is stored in memory beginning with address 123456. What is the value of *px ? a random number 101 we don't know 123456

Explanation / Answer

Question 1:

Answer: indirect reference

Question 2:

Answer:

Below statements are correct.

py is an in-out parameter

px is an in-out parameter

dx is an input parameter

py and px are pointer variables so if we do any changes in them, these changes will reflect on original copy of that variable where it is being called

Question 3:

Answer: 123456

The value of *px is 101.