About 11,400,000 results
Open links in new tab
  1. 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 …

  2. How do I create a numpy array of all True or all False?

    Jan 16, 2014 · In Python, how do I create a numpy array of arbitrary shape filled with all True or all False?

  3. Array increment positioning with respect to indexer in C - array [i ...

    Apr 26, 2023 · An illustration. Suppose that array contains three integers, 0, 1, 2, and that i is equal to 1. array[i]++ changes array[1] to 2, evaluates to 1 and leaves i equal to 1. array[i++] …

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

    Oct 3, 2009 · 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.

  5. What does `array[^1]` mean in C# compiler? - Stack Overflow

    Oct 26, 2020 · What does `array [^1]` mean in C# compiler? [duplicate] Asked 4 years, 8 months ago Modified 1 year, 7 months ago Viewed 48k times

  6. Why can't I do array [-1] in JavaScript? - Stack Overflow

    Jan 6, 2019 · The array indexing heuristics were not designed to facilitate use of a specific function. If anything, the inverse is true - low-level behavior (like array indexing) was defined …

  7. What does [:-1] mean/do in python? - Stack Overflow

    Mar 20, 2013 · Working on a python assignment and was curious as to what [:-1] means in the context of the following code: instructions = f.readline()[:-1] Have searched on here on S.O. …

  8. Check if an element is present in an array [duplicate]

    ECMAScript 2016 incorporates an includes() method for arrays that specifically solves the problem, and so is now the preferred method. [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); …

  9. What does "array.length -1" mean in JavaScript? - Stack Overflow

    I know how to use the JavaScript for loops to cycle through arrays for example, but I still didn't understand what the array.length -1 means, specifically the -1 part. When using a for loop over …

  10. javascript - What does [object Object] mean? - Stack Overflow

    The Array object is also derived from Object and is frequently used: it is an ordered, 0-indexed array of variable values. Object objects, unlike Arrays and other classes are treated simply as …