How can you prematurely exit from a function without returning a value if it is a void function? I have a void method that needs to not execute its code if a certain condition i
You mean like this?
void foo ( int i ) { if ( i < 0 ) return; // do nothing // do something }