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 · To determine the number of elements in the array, we can divide the total size of the array by the size of the array element. You could do this with the type, like this: ... and get the proper …

  3. linux command to get size of files and directories present in a ...

    How can I see the size of files and directories in Linux? If use df -m, then it shows the size of all the directory at the top level, but, for the directories and files inside the directory, how do I

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

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

    The C++ standard does not specify the size of integral types in bytes, but it specifies a minimum width in bits (see [basic.types.fundamental] p1). You can infer minimum size in bytes from that and the value …

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

  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. Where do I find the definition of size_t, and what is it used for?

    Jul 13, 2009 · The OP specifically asked Where do I find the definition of size_t? I landed here searching for the same thing. The cited dup does not discuss where to find the declaration.

  9. How do I determine the size of an object in Python?

    5 If you don't need the exact size of the object but roughly to know how big it is, one quick (and dirty) way is to let the program run, sleep for an extended period of time, and check the memory usage …

  10. What's sizeof(size_t) on 32-bit vs the various 64-bit data models?

    17 it should vary with the architecture because it represents the size of any object. So on a 32-bit system size_t will likely be at least 32-bits wide. On a 64-bit system it will likely be at least 64-bit wide.