Infosys interview question

Define difference between a stored procedure and a function?