About 8,710,000 results
Open links in new tab
  1. int - What is size_t in C? - Stack Overflow

    In this case, depending upon what your use case is, you might be better off using int (or long long) for s1 and s2. There are some functions in C/POSIX that could/should use size_t, but don't …

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

  3. c++ - Should I use size_t or ssize_t? - Stack Overflow

    It is unlikely that any implementation will use wider type for ssize_t than it uses for size_t. This immediately means that the price you will pay for the ability to return negative values is halving …

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

  5. c++ - unsigned int vs. size_t - Stack Overflow

    Sep 25, 2008 · The size_t type is the unsigned integer type that is the result of the sizeof operator (and the offsetof operator), so it is guaranteed to be big enough to contain the size of the …

  6. Size function in matlab - Stack Overflow

    As you know, matlab deals mainly with matrices. So, the size function gives you the dimension of a matrix depending on how you use it. For example: 1. If you say size(A), it will give you a …

  7. How to determine the size of an object in Java - Stack Overflow

    Dec 17, 2019 · The approach basically builds on other work where people experimentally identified the size of primitives and typical Java objects and then apply that knowledge to a …

  8. 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

  9. sql - Postgres DB Size Command - Stack Overflow

    Sep 20, 2013 · What is the command to find the size of all the databases? I am able to find the size of a specific database by using following command: select …

  10. How can I get the size of an std::vector as an int?

    Note that if the size of the vector is greater than the biggest number an int can represent, size will contain an implementation defined (de facto garbage) value.