C語言之argument和parameter的區別

    《The C Programming Language》 K&R Page25
    We will generally use parameter for a variable named in the parenthesized list in a function definition, and argument for the value used in a call of function. The terms formal argument and actual argument are sometimes used for the same distinction.
    翻譯:
    我們通常用parameter表示函數定義中括號內的變量名,用argument表示函數調用中使用的值。formal argument和actual argument有時也有相同的區分。
    所以結論如下:
    parameter / formal argument : 形參;
    argument  / actual argument : 實參。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章