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

What is an equation of the line that passes through the points (-4,1) and (4,4)?
When the football play started Andre ran forward 20 yards then turned around and ran 5 yards back he stood in that spot for 3 seconds then walked back to where
Give me 3 allusions that Martin Luther King JR use in his speech “I Have A Dream”
Awnser queation 1. 2. 3.
hhhhhhhheeeeeeeeeeeellllpppppppppppp
Which line from "Helen Grey" implies that the author thinks physical beauty is not the most valuable quality? (4 points) A) Because one loves you, Helen Grey /
Plz I will give brainliest
solve this. 6x+9=27−3x
help please?? hurry!! Find the values of the variables in the diagram above
What are the advantages of buying food locally? A: It is possible to eat food out of season. B; It is fresher and contains more nutrients. C: More oil and gas i