return
is the last statement that is executed in a function. After the return statement the function returns the control to the caller.
For example:
function1 function2
int x;
function2();-----------------------------+
+---->puts("function2 - should be called");
+-----return;
puts("back to function1");<--------------+ puts("should not be called");
2
solved Why does NSLog() not do anything if it’s after a method’s return?