Function definition (programming)

In programming, a function is a group of instructions with a particular purpose and that is executed when called from another function or procedure. A function can be called multiple times and even call itself (recursive function).

Functions can receive data from outside when called through parameters and must return a result.

They differ from procedures in that procedures do not return a result.

In general, functions must have a unique name in the scope to be able to be called, a result data type, a list of input parameters and their code.

Doubts? needs more information? Write and we will respond to your email: click here