TIL Argument vs Parameter

OK, I know naming idioms isn’t really a big deal. but yet it’s fun and useful to know 🙂

Parameter is the variable name in function definition/deceleration

Argument is the name of the variable when calling the function


void function( int Var1, int Var2 ) { //  do something

anotherFunction( int AnotherVar1, int AnotherVar2);

}

Var1, Var2 are called parameters

AnotherVar1, AnotherVar2 are called arguments …

 

Nowhere is better than wikipedia for more details 🙂