4 ms·
So, the distinction that I've learnt is that functions return values and procedures are run for their side effects. So, strlen, for example, is a function, and
by Tyr42 11y ago
So, the distinction that I've learnt is that functions return values and procedures are run for their side effects.
So, strlen, for example, is a function, and printf is a procedure.
(Yes I know prints returns an int, but it's run for it's side effects primarily.)