Parameter passing

Gapfill exercise

  
Enter your answers in the gaps. When you have entered all the answers, click on the "Check" button.
What are the parameter passing methods?
The mechanism used to pass to a procedure (subroutine) or function. The most common methods are to the value of the actual parameter ( by value), or to pass the of the location where the actual parameter is stored (call by ).


What is call by value method?
In the call by value method the arguments are copied to the arguments, hence any performed by function on doesn’t affect actual parameters.


What is call by reference method?
Unlike call by value, in this method, of actual arguments (or parameters) is to the parameters, which means any performed on formal affects the value of parameters.


what are the different aspects of function calling?
A function may or may not accept any argument. It may or may not return any value. Based on these facts, There are four different aspects of function calls.
function arguments and return
function without and with return value
function arguments and without return value
with arguments and return value


find the missing terms?
#include
int sum();
void ()
{
int ;
printf("\nGoing to calculate the sum of two numbers:");
result = sum();
printf("%d",result);
}
int ()
{
a,b;
printf("\nEnter two numbers");
scanf("%d %d",&a,&b);
a+b;
}