Magna International Interview Question

What is the difference between function and store procedure in SQL?