Top "Argument-passing" questions

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

JavaScript variable number of arguments to function

Is there a way to allow "unlimited" vars for a function in JavaScript? Example: load(var1, var2, var3, var4, var5, …

javascript function arguments argument-passing
Unpack a list in Python?

I think 'unpack' might be the wrong vocabulary here - apologies because I'm sure this is a duplicate question. My …

python list argument-passing
How to pass event as argument to an inline event handler in JavaScript?

// this e works document.getElementById("p").oncontextmenu = function(e) { e = e || window.event; var target = e.target || e.srcElement; console.…

javascript events inline argument-passing
How to convert a command-line argument to int?

I need to get an argument and convert it to an int. Here is my code so far: #include <…

c++ argument-passing command-line-arguments
Calculate percentage Javascript

I have a question about javascript logic what I use to get percent of two inputs from my text fields. …

javascript html percentage argument-passing
Pass in an array of Deferreds to $.when()

Here's an contrived example of what's going on: http://jsfiddle.net/adamjford/YNGcm/20/ HTML: <a href="#">Click me!&…

javascript jquery argument-passing jquery-deferred .when
Postgres integer arrays as parameters?

I understand that in Postgres pure, you can pass an integer array into a function but that this isn't supported …

arrays postgresql argument-passing
Function pointer as an argument

Is it possible to pass a function pointer as an argument to a function in C? If so, how would …

c function-pointers argument-passing
How to pass arguments to functions by the click of button in PyQt?

I want to pass the arguments to a function when I click the button. What should I add to this …

python function arguments pyqt4 argument-passing
Passing a class as an argument to a method in java

I am writing a method were I would like to pass a class to a method, where a part of …

java argument-passing instanceof