High Level Language Programming


 

Function read_string

 

void read_string(char A[10000], int length)
{
    int index;
    char character;

    index = 0;
    while (index < length)
    {
        cin >> character;
        A[index] = character;
        index = index + 1;
    } // end while
} // end read_string

 

A and length are formal parameters**.

In the call or invocation read_string(T, n), T and n are actual parameters (sometimes called arguments).


** There is general confusion in the naming of the "place holder" identifiers used in the definition of a function and the objects provided by the portion of the program that invokes (calls) that function. The following table provides some of the equivalent terms:

In the invoking programIn the function
actual argumentformal argument
actual parameterformal parameter
actual argumentdummy parameter
argumentparameter

 

See also the dictionary definition of argument.

[Prev][TOC][Next]


CS1104 Main Page
Last Updated 01/05/2000
© L.Heath, 2000