Domanda di colloquio di Infosys

Define difference between a stored procedure and a function?