Parameters are the things defined by functions as input, arguments are the things passed as parameters.
void foo(int bar) { ... }
foo(baz);
In this example, bar
is a parameter for foo
. baz
is an argument passed to foo
.
More Related Contents:
- “Parameter” vs “Argument” [duplicate]
- Difference between parameter and argument [duplicate]
- What’s the difference between an argument and a parameter?
- Set a default parameter value for a JavaScript function
- What is a magic number, and why is it bad? [closed]
- Passing parameters to a Bash function
- What is the difference between currying and partial application?
- How to explain callbacks in plain english? How are they different from calling one function from another function?
- What is Type-safe?
- Pass by reference or pass by value? [closed]
- Making a system call that returns the stdout output as a string
- What is a Lambda?
- What’s the term for the part of the URL after the question mark?
- When a method has too many parameters? [closed]
- Passing a function with arguments as an argument?
- Why shouldn’t I use “Hungarian Notation”?
- Expression Versus Statement
- Prefer composition over inheritance?
- In Javascript/jQuery what does (e) mean?
- Test loops at the top or bottom? (while vs. do while) [closed]
- Using parameters in batch files at Windows command line
- How do I assess the hash collision probability?
- When to use unsigned values over signed ones?
- PHP function with variable as default value for a parameter
- Why is it recommended to have empty line in the end of a source file?
- Are exceptions really for exceptional errors? [closed]
- What happens if I call a function with more arguments than it is defined to accept?
- Calculating a 2D Vector’s Cross Product
- In what situations is octal base used?
- Why are leading zeroes used to represent octal numbers?