About 12,700,000 results
Open links in new tab
  1. How to create an array containing 1...N - Stack Overflow

    Why go through the trouble of Array.apply(null, {length: N}) instead of just Array(N)? After all, both expressions would result an an N -element array of undefined elements. The difference is that …

  2. How do I declare an array in Python? - Stack Overflow

    Aug 23, 2022 · The array structure has stricter rules than a list or np.array, and this can reduce errors and make debugging easier, especially when working with numerical data.

  3. Which comes first in a 2D array, rows or columns?

    Jul 25, 2012 · When creating a 2D array, how does one remember whether rows or columns are specified first?

  4. How do I create an array in Unix shell scripting? - Stack Overflow

    Dec 10, 2009 · To clarify the above comment, the issue with the question is that there is no such thing as "Unix shell [scripting]". Instead, there are multiple shells, with a POSIX-compatible …

  5. javascript - Array.size () vs Array.length - Stack Overflow

    May 25, 2017 · The OP was asking 'Array.size () vs Array.length'. From the previous discussions, it was make clear, that the 'size' Function is not part of standard JavaScript but implemented …

  6. How to loop through array in jQuery? - Stack Overflow

    Oct 15, 2010 · If you're dealing with sparse arrays (e.g., the array has 15 elements in total but their indexes are strewn across the range 0 to 150,000 for some reason, and so the length is …

  7. How do I declare and initialize an array in Java? - Stack Overflow

    Jul 29, 2009 · An array can contain primitives data types as well as objects of a class depending on the definition of the array. In case of primitives data types, the actual values are stored in …

  8. syntax - C++ array initialization - Stack Overflow

    Dec 17, 2009 · This will default-initialize an array of any type (assuming the elements allow default initialization), which means that for basic (scalar) types the entire array will be properly …

  9. Arrays vs Vectors: Introductory Similarities and Differences

    Feb 26, 2013 · What are the differences between an array and a vector in C++? An example of the differences might be included libraries, symbolism, abilities, etc. Array Arrays contain a …

  10. Check if a value is in an array or not with Excel VBA

    It returns a single dimension variant array with just two values, the two indices of the array used as an input (assuming the value is found). If the value is not found, it returns an array of (-1, -1).