3 ms·
Pointers have the advantage of signaling a return value at the call site without having to look up the function prototype.
by zarkov99 11y ago
Pointers have the advantage of signaling a return value at the call site without having to look up the function prototype.
- pjmlp 11y agoWhich I don't agree with, given the amount of pointers that fly around in C codebases. You cannot ever known what a pointer is used for. If the prototype has const, maybe just maybe, assuming the function doesn't cast it away, it is a read only. So I never bought into this argument.