barrelracer9018 barrelracer9018
  • 20-08-2019
  • Computers and Technology
contestada

What is the difference between an argument and a parameter?

Respuesta :

Mustela Mustela
  • 24-08-2019

Explanation

Parameter is basically a variable which is defined by a method/function.

When a method/function is called then this Parameter receives the value.

In any method/function, Parameter works as recipient.

If we pass a value In a method/function when it invokes then that value is

called Argument.In any method/function, Argument works as agent.

Example:

// here p1 and p2 are parameters in the method

fun test(p1,p2)

{

return p1+p2;

}

// here 2,6 are Argument in the method

test(2,6);

Answer Link

Otras preguntas

How would you describe Martin Luther King Jr. as a student? Were you surprised by this? Why or why not?
Factored form for 7w-w^2=0
Myriah wants to use dimensional analysis to find out how many centimeters (cm) are in 1. 4 meters (m). Which of these equalities will be useful for this calcula
A line crosses the coordinates (-3,5) and (4, -2). What is the slope- intercept form of the equation of this line?
(-2.9) + 8.0 + 7.4 I need help with this
Which appeal is most clearly an example of ethos
Based on the excerpt, what advise would langston Hughes have given to young African Americans during the Harlem renaissance?
Rewrite in standard form -2x+6y=-18
According to the textbook of neonatal resuscitation, 8th edition algorithm, at what point during resuscitation is a cardiac monitor recommended to assess the ba
what is the meaning of competition in geography? i need an answer asap. Thanks!