About 50 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. How do I determine the size of my array in C? - Stack Overflow

    Sep 1, 2008 · int a[17]; size_t n = sizeof(a); On my computer, ints are 4 bytes long, so n is 68. To determine the number of elements in the array, we can divide the total size of the array by the size of …

  3. What does the C++ standard say about the size of int, long?

    If the size of the int is that important one can use int16_t, int32_t and int64_t (need the iostream include for that if I remember correctly). What's nice about this that int64_t should not have issues on a 32bit …

  4. Is the size of C "int" 2 bytes or 4 bytes? - Stack Overflow

    The sizeof operator yields the size (in bytes) of its operand, which may be an expression or the parenthesized name of a type. The size is determined from the type of the operand. Assuming a …

  5. python 3.x - Difference between len and size - Stack Overflow

    Aug 28, 2019 · I found two ways to determine how many elements are in a variable… I always get the same values for len () and size (). Is there a difference? Could size () have come with an imported …

  6. Get the size of the screen, current web page and browser window

    Aug 9, 2010 · for windowWidth/Height OP don't want to count size of scroll bars so we use .clientWidth/Height the screenY - in below solution we add to position of top left browser corner …

  7. css - Font scaling based on size of container - Stack Overflow

    Learn how to scale font size dynamically based on the size of its container using CSS techniques and responsive design principles.

  8. What's the difference between size_t and int in C++?

    In several C++ examples I see a use of the type size_t where I would have used a simple int. What's the difference, and why size_t should be better?

  9. c++ - When to use std::size_t? - Stack Overflow

    Dec 23, 2009 · 82 size_t is the result type of the sizeof operator. Use size_t for variables that model size or index in an array. size_t conveys semantics: you immediately know it represents a size in bytes or …

  10. git - Repository size limits for GitHub.com - Stack Overflow

    Aug 4, 2016 · Lately I have been using GitHub and I am wondering what is the repository size limit for files hosted on github.com?