Ask Question
17 May, 06:04

What is the difference between an argument and a parameter?

+1
Answers (1)
  1. 17 May, 08:49
    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?
Find an answer to your question ✅ “What is the difference between an argument and a parameter? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers