Practice ยท 3 of 3
Ownership Transfer
Implement int* take(int **slot) that returns the pointer currently in *slot and sets *slot to NULL โ handing ownership to the caller without leaving a dangling alias.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Ownership Discipline