Ask Question
1 October, 13:53

A function is executed when it is

A.

defined

B.

prototyped

C.

declared

D.

called

+2
Answers (1)
  1. 1 October, 17:04
    0
    D. called

    Explanation:

    A function is executed when it is called.

    Function definition comprises of the code body of the function. For example:

    int add (int a, int b) {

    return a+b;

    }

    Function declaration or function prototype specifies the signature of the function (number and type of arguments, return type). e. g,

    int add (int a, int b);

    Function call is when the function is executed with actual arguments:

    add (2,4);

    This will return 6 upon execution of function body.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A function is executed when it is A. defined B. prototyped C. declared D. called ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers