Ask Question

A function is executed when it is

A.

defined

B.

prototyped

C.

declared

D.

called

+4
Answers (1)
  1. 1 July, 21:43
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers