2006年12月25日
看《TIJ》時老看到“引數”這個詞,覺得怪別扭的,但一直沒去查引數和參數有何區別,先查資料終于明白了:
1.http://blog.chinaunix.net/u/25073/showart_188475.html
一般說來,兩個是可以互換的。但是 C 程序員的習慣是:parameter 是參數,而 argument 是參數的值。也就是說,函數原型的參數列表,是 parameter list,比如

int sum(int a, int b);

而當使用的時候

int sum;
sum = sum(10, 20);

10 和 20 則是 argument。

這個習慣也影響了很多其他語言的程序員。如果要混合兩者的意義,一般用 argument,而 parameter 則比較少用。

argument 有的時候也被稱作 actual parameter。

對應的中文術語是

parameter = 形參 (估計是「形式參數」簡稱)
argument = 實參 (估計是「實際參數」簡稱)


2.http://royfang.spaces.live.com/blog/cns!53F57C7F0CE9D52C!125.entry
argument和parameter是有區別的,過去的資料中統一翻譯為參數是不準確的,前者翻譯成引數,后者翻譯成參數,這樣的翻譯才是精確的翻譯,兩者的區別如下文:
What is the difference between an argument and a parameter?
引數和參數有何區別?
While defining method, variables passed in the method are called parameters.
當定義方法時,傳遞到方法中的變量稱為參數.
While using those methods, values passed to those variables are called arguments.
當使用方法時,傳給變量的值稱為引數.