Question: Beginning programmers often add a return statement at the end of each procedure: void inc ( int * x ) { ( * x )
Beginning programmers often add a return statement at the end of each procedure:
void inc int x
x;
return;
The thinking is that, as with switch statements, there might be a fallthrough if the return is not there. Could a function mechanism be designed that would allow this? Would it make sense to have such a mechanism?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
