A function may return a pointer, but the programmer must ensure that the pointer 

Want to know the right answer to the question you’re searching for? Scroll down to get the answer below.

A function may return a pointer, but the programmer must ensure that the pointer 

  1. still points to a valid object after the function ends
  2. has not been assigned an address
  3. was received as a parameter by the function
  4. was received as a parameter by the function
  5. None of these

Answer: still points to a valid object after the function ends

Leave a Comment