Domanda di colloquio di Tata Consultancy Services

what is the difference between function and procedure?