About 42,000 results
Open links in new tab
  1. binary - In C++, how is signed integer stored? - Software …

    May 11, 2022 · In C++, how is signed integer stored? The C++ specification does not prescribe any particular storage representation for signed integers on the actual hardware level. An …

  2. coding style - Using unsigned integers in C and C++ - Software ...

    Jan 30, 2014 · 0 There are many cases where integers don't actually represent numbers, but for example a bit mask, an id, etc. Basically cases where adding 1 to an integer doesn't have any …

  3. Is using 64 bit integers (long long) faster than less bits ones?

    Jun 6, 2020 · So, if I just use long long (64 bit integers), will my code be faster than if I use less bits integers Not automatically no. Robert has already covered the most of it.

  4. How are negative signed values stored? - Software Engineering …

    In most implementations that you are likely to encounter, negative signed integers are stored in what is called two's complement. The other major way of storing negative signed numbers is …

  5. endianness - Is the in-code representation of multibyte numbers …

    Nov 29, 2023 · Bit shift operations can be visualized as if all the bits in the word were arranged in a big-endian sequence. The endianness of a platform does not affect the semantics of the bit …

  6. Why are there so many numeric types (bit, int, float, double, long)?

    Integers are enumerable but floats are not, etc. In fact Float/double number is a structure that combines two integer fields: mantissa and exponent. Complex numbers (that you excluded …

  7. c++ - Why does integer division result in an integer? - Software ...

    Jan 21, 2016 · We learned in Intro to Programming that if you divide two integers, you always get an integer. To fix the problem, make at least one of those integers a float. Why doesn't the …

  8. Is it a bad practice to return an enum without an enum return type?

    Jun 8, 2024 · Because EVEN and ODD are not variables, but they are part of my enum numbers, therefore they are integers. That's my whole question, is it a bad practice to do so.

  9. history - Why is int in C in practice at least a 32 bit type today ...

    Oct 23, 2023 · Why is int in C in practice at least a 32 bit type today, despite it being developed on/for the PDP-11, a 16 bit machine?

  10. algorithms - Software Engineering Stack Exchange

    Sep 25, 2020 · Given n integers, produce pairs which sum to a number evenly divisible by d. Contrary to the earlier comment, this is the same problem as pairs which add up to d.