Pergunta de entrevista da empresa Tata Consultancy Services

what is the difference between function and procedure?