What is a function? Write its three parts.
Answers
Answered by
0
Answer:
Function Body:
It consists of three parts: local variable declaration part, executable part and return statement. All the required variables are declared at the local variable declaration part. Executable part contains all the executable statements that performs actual task.
Answered by
3
Explanation:
A technical definition of a function is: a relation from a set of inputs to a set of possible outputs where each input is related to exactly one output. ... We can write the statement that f is a function from X to Y using the function notation f:X→Y.
It consists of three parts: local variable declaration part, executable part and return statement. All the required variables are declared at the local variable declaration part. Executable part contains all the executable statements that performs actual task.
hope it helps
{20❤+follow=Inbox}
Similar questions