How do we return Pointers from functions?

Example: max Function


What happens when we return static & auto variables’ pointers?

Common Pitfall: Returning the Address of an auto Variable inside the Function


How do we return a pointer to an array’s indexed element?