Computer Science, asked by dallanavi777, 9 months ago

The parameter passing mechanism used in C is..........?
1.call by name
2. call by value
3.name call
4.none of these​

Answers

Answered by virksahil07
2

Answer: Call by value

Explanation:

Answered by Agastya0606
0

Answer:

    Call by value is the correct option for the given question.

Explanation:

In the Call by Value method, the value of the actual parameter is copied into the formal parameter. There is no change in the original value when we use call by value.

In this method, the called function creates new variables for storing the value of the arguments passed to it.

example:

void xxx (int);

int main()

{ a = 10;

show(a) ; // a is actual parameter

}

void xxx ( int x )

{  print ( "%d", x ) ; // x is formal parameter.

Similar questions