Topical Information

Here are a few questions to help you clarify your understanding of function arguments.

Directions

You won't use matching responses multiple times, and each blank should have only one response ...and note that there are more responses than blanks!

Questions

  1.  
      F  Actual Ameans you can't change the argument within the function
       Bthe argument listed in the function's header
      P  Value Cmeans the argument must be a constant
       Dmeans a variable cannot be passed
      E  Reference Emeans the actual argument can be changed
       Fthe argument listed in the function call
      A  const GI haven't got a clue
       Hmeans the argument is in a library
      B  Formal Jmeans the argument is in a tuxedo
       Mmeans nothing in C++
      M  Parametric Pmeans the actual argument won't change, but the formal one may
       Smeans the formal argument won't change, but the actual one may
  2. In terms of a function, what does input mean?

    
            Value(s) given to a function by its caller during the function call
            process.
    
            Or:
    
            Value(s) known before a function is called, but necessary for the
            function to use in its processing.  Such values are given to or sent
            to the function by the caller during the function call process.
            
            The actual arguments are listed between parentheses after the
            function's name in the call.  The formal arguments are listed with
            their types between parentheses after the function's name in its head
            (seen both in the prototype and the definition).  Formal arguments
            give names (and hopefully meaning) to the function's desired inputs.
            Actual arguments provide the values important to the caller for this
            particular call.
    
    

    Ditto, but what does output then mean?

    
            Value(s) produced by a function to give back to the caller.
    
            The return mechanism can be used to send a single value back to the
            caller of the function.  They would then use this value in a
            surrounding calculation, an assignment, or send it to cout for
            display.
    
            The reference mechanism can be used to give multiple values back to
            the caller.  It does this by granting the function write access to the
            caller's memory locations.  (Normally memory locations are visible
            only to the individual function that created them.)
    
    

    Do either of these have anything to do with the console (by definition...)?

    
            NO!!!
    
            (Although a function's output may be displayed on the console, this is
            a use after the function has 'output' its result(s).  And even though
            a function's input may have come from the console, this is a source
            before the data is 'input' to the function.)