Know the difference between Argument and Parameter in programming
Many of us still think that arguments and parameters are the same. But that is not the case. They're different. So, today we're gonna look at the differences between arguments and parameters. Let's get started!
// Here a and b are Parameters
function...
roopesh.hashnode.dev2 min read
A parameter is a variable in a method definition. When a method is called, the arguments are the data you pass into the method's parameters.
int add(int x, int y) { return x + y; }int result = add(123, 456);