A reason for passing a pointer to a function is
A) to allow the called function to modify a variable accessible to the calling function.
B) to avoid the overhead of copying large data structures.
C) to allow easy access to data in the function that is being called.
D) A and B are both true.
E) None of the above
Correct Answer:
Verified
Q24: Any arithmetic operation may be performed on
Q25: A pointer can be passed as an
Q26: The expression s->m is meaningful only when
Q29: The expression s->m has the same meaning
Q34: With pointer variables, you can manipulate data
Q35: can be used as pointers.
A)C++ string objects
B)Punctuation
Q36: The term pointer can be used interchangeably
Q37: The statement int *ptr = new int;
Q38: Dynamic memory allocation occurs
A)when a pointer is
Q40: The statement cout << &num1; will output
A)the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents