colinliu206 colinliu206
  • 21-08-2019
  • Computers and Technology
contestada

A function is executed when it is

A.
defined

B.
prototyped

C.
declared

D.
called

Respuesta :

Branta Branta
  • 25-08-2019

Answer:

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.

Answer Link

Otras preguntas

Give me a SIX-WORD summary of the Korean War.
what is the slope of the linear equation y =-1/5x​
How does Hamm hope to leave a)in clov’s arms b)in a plane c)in his wheelchair d)in a raft
How did the Industrial Revolution contribute to the changes in environmental quality that occurred during the late 18th and 19th centuries?
Which of the following describes a cylinder that has a volume of 32pi Units^3
The Outsiders. Why does the church creep him out? What is the premotion?
What is the y-intercept of f–1(x)?
if are spaced closely together on the map,there is a drastic temperature change over the distance
Marlye posted a story on her blog. On the first day there were 80 responses and on the second day there were 180 responses. What percent is the increase, 100, o
Solve for ca (c- 6) = a​