Top "Parameter-passing" questions

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

How to write a bash script that takes optional input arguments?

I want my script to be able to take an optional input, e.g. currently my script is #!/bin/bash …

bash arguments parameter-passing
How can I pass a member function where a free function is expected?

The question is the following: consider this piece of code: #include <iostream> class aClass { public: void aTest(int …

c++ arguments parameter-passing function-pointers pointer-to-member
How to return a value from a Form in C#?

I have a main form (let's call it frmHireQuote) that is a child of a main MDI form (frmMainMDI), that …

c# .net winforms parameter-passing
jQuery - add additional parameters on submit (NOT ajax)

Using jQuery's 'submit' - is there a way to pass additional parameters to a form? I am NOT looking to …

jquery parameter-passing form-submit
Expanding tuples into arguments

Is there a way to expand a Python tuple into a function - as actual parameters? For example, here expand() …

python tuples parameter-passing
Passing parameters to JavaScript files

Often I will have a JavaScript file that I want to use which requires certain variables be defined in my …

javascript parameter-passing
Passing Objects By Reference or Value in C#

In C#, I have always thought that non-primitive variables were passed by reference and primitive values passed by value. So …

c# parameter-passing pass-by-reference pass-by-value
How to pass 2D array (matrix) in a function in C?

I need to do this to persist operations on the matrix as well. Does that mean that it needs to …

c multidimensional-array parameter-passing
How do I pass a method as a parameter in Python

Is it possible to pass a method as a parameter to a method? self.method2(self.method1) def method1(self): …

python parameter-passing
What does the star operator mean, in a function call?

What does the * operator mean in Python, such as in code like zip(*x) or f(**k)? How is it …

python syntax parameter-passing iterable-unpacking argument-unpacking