Multiple Choice
A function may return a pointer, but the programmer must ensure that the pointer
A) is pointing to an object that is still valid after the return of the function.
B) has been assigned an address.
C) was received as a parameter by the function.
D) has not previously been returned by another function.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q5: The expression s->m has the same meaning
Q8: A pointer can be passed as an
Q9: With pointer variables you can access, but
Q11: Suppose that a function dynamically allocates a
Q12: Which arithmetic operations can be performed on
Q13: The statement int *ptr; means<br>A) the variable
Q14: C++ does not perform array bounds checking.
Q15: An array name is a pointer constant
Q34: Which of the following statements is not
Q43: A pointer with the value 0 (zero)