void func(){
return;
}
How about if I had something like:
void func(int v){
if(v == 1)
return;
cout << v;
}
would that work fine? (I can't test it out right now.) I mean like print the number, unless it's equal to 1. If so, that's weird! I thought you couldn't return from a void function!