how do you return a pointer in c
Instead of a regular value or even a reference, a function can return a pointer. You can start to specify this by typing the * operator on the left side of the function's name. Here is an example: Then, use the body of the function to define it.