This question or suggestion involves the use of the return- used here to terminate the code- not as a function returning a value.
This code is found in a C programming book:
How often do those of you that program professionally in C- use something like this. To me it looks like it behaves just like a break statement and thus can be removed.Code:void print(int i) if (i < 0) return; printf("%d", i); }
To remove it would you negate the condition or use a conditonal flag.
How would you all remove the jump statement- here..