Infineon Technologies Interview Question

What is the difference between a procedure and a function?