Computer Science, asked by AryaGoswami4625, 9 months ago

When we can execute a function?

Answers

Answered by Anonymous
19

The code inside a function is not executed when the function is defined. The code inside a function is executed when the function is invoked. It is common to use the term "call a function" instead of "invoke a function". It is also common to say "call upon a function", "start a function", or "execute a function".

Answered by letmeanswer12
1

The function can be executed from the program by calling.

Explanation:

  • Functions are "self-contained" code modules that perform a particular function. Typically functions to "take" data, process it, and "return" a result.
  • To use a function, we must call the function to carry out the task specified. For call a function, the necessary parameters must be passed along with the name of the function, and if the function returns a value, then we can store the return value.

Similar questions