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

1)A reason for passing a pointer to a function is ________ 2) In the statement:

ID: 3539882 • Letter: 1

Question

1)A reason for passing a pointer to a function is ________

2) In the statement: int &&ptr; the address of the address of ptr is an int (true or false)

3) Dynamically allocated memory is allocated from the _____

4)The statement: delete pBoat;

5)The statement cin >> *p; ________.



to avoid the overhead of copying large data structures
to allow the called function to modify a variable accessible to the calling function
to allow easy access to data defined within the function that is being called
A and B are both true

Explanation / Answer




local area



stores the keyboard input into the variable pointed to by p


to allow the called function to modify a variable accessible to the calling function