Computer Science, asked by Sarfarazahmad2103, 11 months ago

_____ act as a means of communication between the called and calling function.

Answers

Answered by TanikaWaddle
3

Answer:

\underline{\text{Arguments }} act as the mean of communication between the called and calling function.

Explanation:

Let us consider the following code segment for better understanding of arguments:  

void callingFunction()

{

 int sum = 0;

 sum = calledFunction(10,20);  //passing the values 10 and 20 as arguments.

 printf("Value of sum = " + sum); //result returned in variable 'sum' from the calledFunction, is printed

}

int calledFunction(int a, int b)   //Here a and b are the arguments. a receives 10 and b receives 20

{

 int val = a + b; //adds the value of a and b received as arguments from the callingFunction()

 return val;      //returning the result of sum of a and b.

}

Please refer to the comments in each line for the details of important lines.

Hence, we can easily see that,

The arguments a and b passed to the calledFunction() act as the communication between callingFunction() and calledFunction().

Similar questions