Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: