Answers for "argument vs parameter"

1

argument vs parameter

parameters: Function Definition 
argument  : Value passed to function
Posted by: Guest on August-23-2021
0

argument vs parameter

// Define a method with two parameters
int Sum(int num1, int num2)
{
   return num1 + num2;
}

// Call the method using two arguments
var ret = Sum(2, 3);
Posted by: Guest on August-17-2021
0

argument vs parameter

int main () {
   int x = 5; 
   int y = 4;

   sum(x, y); // **x and y are arguments**
}

int sum(int one, int two) { // **one and two are parameters**
   return one + two;
}
Posted by: Guest on August-17-2021

Code answers related to "argument vs parameter"

Browse Popular Code Answers by Language