Pergunta de entrevista da empresa Infineon Technologies

What is the difference between a procedure and a function?