Pregunta de entrevista de Infineon Technologies

What is the difference between a procedure and a function?