About 30,900,000 results
Open links in new tab
  1. Difference between size and length methods? - Stack Overflow

    Nov 25, 2013 · What is the difference between .size() and .length ? Is .size() only for arraylists and .length only for arrays?

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

  3. Length of a JavaScript object - Stack Overflow

    Aug 8, 2008 · 38 This method gets all your object's property names in an array, so you can get the length of that array which is equal to your object's keys' length.

  4. Which is faster C++ std::string::length or std::string::size?

    Closed 1 year ago. length() returns the number of characters in the string and size() returns a size_t which is also the same but used to make it consistent with other STL containers. For computing …

  5. arrays - length and length () in Java - Stack Overflow

    Dec 27, 2009 · Why do we have the length of an array as an attribute, array.length, and for String we have a method, str.length()? Is there some reason?

  6. Find length (size) of an array in JavaScript - Stack Overflow

    5 testvar [1] is the value of that array index, which is the number 2. Numbers don't have a length property, and you're checking for 2.length which is undefined. If you want the length of the array just …

  7. When to use type.length-1; and type.length (); in java

    If you want to access the number 4 in the array specifically, though, 4's name is no longer 4 - it's 3! So you use length-1 because when it comes to indexes, we're using the new name given to the physical …

  8. What is the maximum possible length of a .NET string?

    Sep 26, 2008 · 52 Since the Length property of System.String is an Int32, I would guess that that the maximum length would be 2,147,483,647 chars (max Int32 size). If it allowed longer you couldn't …

  9. querying WHERE condition to character length? - Stack Overflow

    The LENGTH () (MySQL) or LEN () (MSSQL) function will return the length of a string in a column that you can use as a condition in your WHERE clause. Edit I know this is really old but thought I'd …

  10. Getting the array length of a 2D array in Java - Stack Overflow

    To get the number of columns, we need to access the first array and consider its length. In this case, we access [1, 1, 1, 1] and thus, the number of columns = 4.