http://www.devx.com/tips/Tip/13049

void func(int n, char * pc); //n and pc are parameters
template <class T> class A {}; //T is a a parameter

int main()
{
  char c;
  char *p = &c;
  func(5, p); //5 and p are arguments
  A<long> a; //’long’ is an argument
  A<char> another_a; //’char’ is an argument
  return 0;
}

Understanding the Difference Between an Argument and a Parameter

Leave a Reply