Top "Parameter-passing" questions

parameter-passing is the process of assigning values to the parameters of a function

Is Java "pass-by-reference" or "pass-by-value"?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, this blog) that claim …

java methods parameter-passing pass-by-reference pass-by-value
How do I pass a variable by reference?

The Python documentation seems unclear about whether parameters are passed by reference or value, and the following code produces the …

python reference parameter-passing pass-by-reference
Check number of arguments passed to a Bash script

I would like my Bash script to print an error message if the required argument count is not met. I …

bash parameter-passing command-line-arguments
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?

In the following method definitions, what does the * and ** do for param2? def foo(param1, *param2): def bar(param1, **param2):

python syntax parameter-passing variadic-functions argument-unpacking
How can I pass an argument to a PowerShell script?

There's a PowerShell script named itunesForward.ps1 that makes iTunes fast forward 30 seconds: $iTunes = New-Object -ComObject iTunes.Application if ($iTunes.…

powershell command-line automation parameter-passing itunes
jQuery's .click - pass parameters to user function

I am trying to call a function with parameters using jQuery's .click, but I can't get it to work. This …

jquery function parameter-passing
JavaScript: Passing parameters to a callback function

I'm trying to pass some parameter to a function used as callback, how can I do that? function tryMe (param1, …

javascript callback parameter-passing
Can we pass parameters to a view in SQL?

Can we pass a parameter to a view in Microsoft SQL Server? I tried to create view in the following …

sql sql-server parameters parameter-passing views
How to pass all arguments passed to my bash script to a function of mine?

Let's say I have defined a function abc() that will handle the logic related to analyzing the arguments passed to …

bash function parameter-passing
Passing an Array/List into Python

I've been looking at passing arrays, or lists, as Python tends to call them, into a function. I read something …

python parameter-passing argument-unpacking