About 109,000 results
Open links in new tab
  1. How to pass 2D array (matrix) in a function in C?

    C does not really have multi-dimensional arrays, but there are several ways to simulate them. The way to pass such arrays to a function depends on the way used to simulate the multiple …

  2. Passing an array as an argument to a function in C

    Jul 4, 2011 · I wrote a function containing array as argument, and call it by passing value of array as follows.

  3. Passing an array as a function parameter in JavaScript

    May 18, 2010 · 148 Why don't you pass the entire array and process it as needed inside the function?

  4. Passing an Array by reference in C - Stack Overflow

    An array passed to a function is converted to a pointer. When you pass a pointer as argument to a function, you simply give the address of the variable in the memory.

  5. c++ - Passing an array by reference - Stack Overflow

    The name of an array variable, is a valid expression whose value is a pointer the the first member of the array. If you have some function foo(T* t), and you have an array T a[N]; then when you …

  6. Passing Arrays to Function in C++ - Stack Overflow

    int* when in a function parameter list (I left out the optional names). Additionally, an array name decays to a pointer to the first element when passed to a function (and not passed by …

  7. c - Pass an array to a function by value - Stack Overflow

    Because the array is being passed by value, an exact copy of the array is made and placed on the stack. The called function then receives this copy of the array and can print it. Because the …

  8. How to pass array as an argument to a function in Bash

    Here is an example where I receive 2 bash arrays into a function, as well as additional arguments after them. This pattern can be continued indefinitely for any number of bash arrays and any …

  9. How to pass an array to a function in VBA? - Stack Overflow

    Apr 17, 2017 · 54 This seems unnecessary since the Array() function documentation clearly states that the function returns a Variant type, but VBA is a strange place. If you declare an …

  10. C pass int array pointer as parameter into a function

    Dec 14, 2014 · You pass a pointer to an array of 10 int *, but func expects an int** (which is expected to be a pointer to the first element of an array of (10, presumably) int* s).