About 15,000,000 results
Open links in new tab
  1. How do I declare an array in Python? - Stack Overflow

    Aug 23, 2022 · A couple of contributions suggested that arrays in python are represented by lists. This is incorrect. Python has an independent implementation of array() in the standard library …

  2. 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. …

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

    Jul 29, 2009 · Static Array: Fixed size array (its size should be declared at the start and can not be changed later) Dynamic Array: No size limit is considered for this. (Pure dynamic arrays do …

  4. python - array.array versus numpy.array - Stack Overflow

    Jun 21, 2022 · For storage purposes, both numpy array and array.array are comparable. Here is the code for benchmark for both comparing storage size of unsigned integer of 4 bytes. Other …

  5. 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 …

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

    Apr 26, 2023 · array[i]++ increments the value of array[i]. The expression evaluates to array[i] before it has been incremented. array[i++] increments the value of i. The expression evaluates …

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

    Jul 25, 2012 · +1 for expressing contrast of ARRAY vs MATRIX! Arrays have no geometric definition. If you think a 1D array is vertical then row is first, if you think a 1D array is horizontal …

  8. How to create an array containing 1...N - Stack Overflow

    This is probably the fastest way to generate an array of numbers. Shortest. var a=[],b=N;while(b--)a[b]=b+1;

  9. How to make an array of arrays in Java - Stack Overflow

    Jul 23, 2017 · @Terence: It does the same as the first: It creates an array of string array references, initialized to the values array1, array2, array3, array4 and array5 - each of which is …

  10. Python list vs. array – when to use? - Stack Overflow

    Aug 17, 2022 · The array.array type, on the other hand, is just a thin wrapper on C arrays. It can hold only homogeneous data (that is to say, all of the same type) and so it uses only …