Berkeley CSUA MOTD:Entry 27285
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/15 [General] UID:1000 Activity:popular
4/15    

2003/2/2-3 [Uncategorized] UID:27285 Activity:nil
2/2     What's the difference between formals and actuals? Aren't they all
        the same (parameters)?
        \_ void f(int x) { ... }
           int main() { f(5); }

           The formal parameter is x; the actual parameter is 5.
           Some people (like the poster below) call formal parameters
           "parameters", and actual parameters "arguments".  Most
           people don't care, and call them both "parameters", or
           both "arguments".
        \_ I believe parameter is the "box" that the argument goes into.
           ie, arguments are values that are assigned to parameters.