I see functions/methods with a void return in the signature that have a return statement at the end of the function. What is the reason for this, and does this apply to other languages?
For all I know, I can use return if I want to exit anywhere else but the end of the function.
A C example:
void funtion(void)
{
int x = 1 + 2;
return; // what do we need this for, if at all?
}