BlackRock interview question

what is the difference between procedure and a function?

Interview Answer

Anonymous

24 Oct 2024

Function: Performs a task and returns a value. Procedure: Performs a task but typically doesn't return a value. Functions can be used in expressions, while procedures cannot.