3 ms·
> Use obsolescent (pre-void) syntax. (68 bytes) If memory serves, that means the method now implicitly returns int and has an implicit "return 0;" at the end.
by city41 17y ago
> Use obsolescent (pre-void) syntax. (68 bytes)
If memory serves, that means the method now implicitly returns int and has an implicit "return 0;" at the end. Sure the source code is smaller, but the actual machine code is larger. Going for the shortest source code is pretty silly, but then this isn't exactly a serious endeavor :)
- tedunangst 17y agoImplicitly returning int is not the same as implicitly returning 0. If it falls off the bottom, the return value is undefined. No additional machine code.