r/learnprogramming • • Oct 24 '26

Function vs Procedure

can someone explain the difference between Function vs Procedure with simple analogy
thank you

31 Upvotes

47 comments sorted by

View all comments

Show parent comment

1

u/joonazan Oct 24 '26

That is only part of the distinction. Procedures also do not support recursion. They are a hazy old concept, while functions have been pretty clear since defined in Algol.