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

Solve the inequality and enter your solution as an inequality in the box below using
Explanation please i am completely stuck
Match the work or description to the author or term. 1. "Annabel Lee" blank verse 2. the section of a sonnet that sets the theme Walt Whitman 3. pioneer of
What does the first word in the two-word scientific name of a species represent?
Plz help no guessing
a club hires 234 coaches. each coach holds 52 passengers how many passengers altogether
Anyone know the answer
what action by the French revolution assembly deprived the poor and women of full equality?
Please help!! If the quantity 4 times x times y cubed plus 8 times x squared times y to the fifth power all over 2 times x times y squared is completely simplif
On cool spring mornings, veils of fog can often be seen rising above warm lakes and ponds. this type fog is an example of ________ fog. radiation convection adv