Wednesday, April 20, 2005

Parameters and Arguments

Introduction

A parameter is a variable named inside the parentheses of a method definition (Kernighan & Ritchie 1988).

An argument is the value for a parameter used when calling the method (Kernighan & Ritchie 1988).

Discussion

formal argument == parameter
actual argument == argument
(Kernighan & Ritchie 1988).

References

  • Kernighan, Brian W. & Dennis M. Ritchie. (1988). The C programming language. New Jersey: Prentice Hall.

No comments: