Reputation: 27485
I want to return nothing inside a function returning void. How would I do that?
Upvotes: 0
Views: 644
Reputation: 131646
You can do one of two things:
return;
statements where you want the function to return control to the caller.EDIT: To clarify, return;
is a statement that returns control to the caller without yielding a value.
That's basically it.
Upvotes: 4