input, output, input/output parameters????? 
Author Message
 input, output, input/output parameters?????

What are these things?  I've never heard of them.  How do you tell one
from the other?

Many thanks,
Richard



Sun, 29 Feb 2004 02:42:51 GMT  
 input, output, input/output parameters?????

Quote:

> What are these things?  I've never heard of them.  How do you tell one
> from the other?

These are not terms from the C standard, but they are sometimes
used to describe the way that functions use their parameters.  An
input parameter is one whose argument value at the function's
entry affects the function's behavior; that is, it is used for
input to the function.  An output parameter is used for output,
usually by storing a new value into it during the function's
execution.  An input/output parameter shares the characteristics
of input and output parameters: its value is used by the
function, then modified.

Usually, in C, output parameters take some kind of pointer type.

Some people like to order function parameters based on the input
or output or i/o category.  I often do this myself:
        http://www.msu.edu/~pfaffben/writings/blp-stds/blp-stds_9.html



Sun, 29 Feb 2004 03:14:09 GMT  
 input, output, input/output parameters?????

Quote:
> What are these things?  I've never heard of them.  How do you tell one
> from the other?

You must be thinking of some other language. In C, a parameter is a
parameter is a parameter.

--

| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste       W++ B OP+                     |
\----------------------------------------- Finland rules! ------------/

"'So called' means: 'There is a long explanation for this, but I have no
time to explain it here.'"
   - JIPsoft



Sun, 29 Feb 2004 03:08:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Input parameters and Output parameters

2. Use VBarray as input AND output parameter?

3. Using Stored Procedure with Input/Output parameters

4. Unable to sync input and output streams

5. function with array input/output

6. Hashing long input strings into short output strings

7. 2 questions on data input and output

8. File input output

9. Redirecting input and output of a program

10. How to Directly Read Piped-Output as Input in C

11. Data Input/Output - New Code- disregard last message

12. Data Input/Output

 

 
Powered by phpBB® Forum Software