Ask Question
30 November, 19:19

What is the difference between an argument and a parameter?

+5
Answers (1)
  1. 30 November, 21:04
    0
    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);
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between an argument and a parameter? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers