About 50 results
Open links in new tab
  1. more modern way of looping through C++ arrays - Stack Overflow

    In C/C++ sizeof. always gives the number of bytes in the entire object, and arrays are treated as one object. Note: sizeof a pointer--to the first element of an array or to a single object--gives the size of …

  2. Loop (for each) over an array in JavaScript - Stack Overflow

    Feb 17, 2012 · On arrays, the default iterator provides the value of each array element ("a", "b", and "c" in the example earlier). Arrays also have three other methods that return iterators: values(): This is …

  3. How to merge two arrays in JavaScript and de-duplicate items

    Oct 18, 2009 · var array3 = ["Vijendra","Singh","Shakya"]; The output array should have repeated words removed. How do I merge two arrays in JavaScript so that I get only the unique items from each …

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

    Dec 10, 2009 · The shell supports one-dimensional arrays. The maximum number of array elements is 1,024. When an array is defined, it is automatically dimensioned to 1,024 elements. A one …

  5. What are the advantages of using std::array over C-style arrays?

    Oct 14, 2019 · 40 std::array is designed as zero-overhead wrapper for C arrays that gives it the "normal" value like semantics of the other C++ containers. You should not notice any difference in runtime …

  6. Is there a way to concatenate two arrays in Excel without VBA?

    Excel cannot directly concatenate arrays in the way you describe (i.e. simply combining them back to back.) However, there is a (complicated) solution to this problem without using helper functions.

  7. Loop through an array in JavaScript - Stack Overflow

    Jun 10, 2010 · A note on sparse arrays: an array in JavaScript may not actually store as many items as reported by its length; that number is simply one greater than the highest index at which a value is …

  8. Most efficient way to append arrays in C#? - Stack Overflow

    Nov 20, 2008 · I am pulling data out of an old-school ActiveX in the form of arrays of doubles. I don't initially know the final number of samples I will actually retrieve. What is the most efficient way to

  9. Worst way to combine six or less byte arrays in JavaScript

    I have 3 byte arrays in JavaScript that I need to combine into two. What would be the lest efficient method to complete this task?

  10. arrays - How to convert int [] into List<Integer> in Java ... - Stack ...

    Jul 2, 2009 · How do I convert int[] into List<Integer> in Java? Of course, I'm interested in any other answer than doing it in a loop, item by item. But if there's no other answer, I'll pick that one as the …