About 12,100,000 results
Open links in new tab
  1. What is the difference between signed and unsigned int

    Apr 21, 2011 · 29 int and unsigned int are two distinct integer types. (int can also be referred to as signed int, or just signed; unsigned int can also be referred to as unsigned.) As the names …

  2. c - what is the unsigned datatype? - Stack Overflow

    46 unsigned means unsigned int. signed means signed int. Using just unsigned is a lazy way of declaring an unsigned int in C. Yes this is ANSI.

  3. What is the difference between signed and unsigned variables?

    Mar 7, 2009 · Unsigned variables, such as unsigned integers, will only allow you to represent numbers in the positive and zero. Unsigned and signed variables of the same type (such as int …

  4. The real difference between "int" and "unsigned int"

    Jan 28, 2012 · (unsigned int) x > (unsigned int y) // false This can be also a caveat, because when comparing signed and unsigned integer one of them will be implicitly casted to match the types.

  5. What is a difference between unsigned int and signed int in C?

    The C standard specifies that unsigned numbers will be stored in binary. (With optional padding bits). Signed numbers can be stored in one of three formats: Magnitude and sign; two's …

  6. type conversion - What to_unsigned does? - Stack Overflow

    Oct 21, 2015 · It's safe to say what you think to_unsigned does is not what the analyzer thinks it does. VHDL is a strongly typed language, you tried to provide a value to place where that …

  7. Unsigned keyword in C++ - Stack Overflow

    25 Does the unsigned keyword default to a data type in C++ Yes,signed and unsigned may also be used as standalone type specifiers The integer data types char, short, long and int can be …

  8. c++ - What is an unsigned char? - Stack Overflow

    Sep 17, 2008 · First, all bits of unsigned char participate in determining the value if any unsigned char object. Second, unsigned char is explicitly stated unsigned. Now, I had a discussion with …

  9. Signed and unsigned integers? - Stack Overflow

    Sep 26, 2013 · In and unsigned int, that bit is used to hold a value. The effect is that you can hold twice the absolute values in an unsigned in as you can in a signed int. Or more plainly, the …

  10. When to use unsigned values over signed ones? - Stack Overflow

    Aug 2, 2008 · When is it appropriate to use an unsigned variable over a signed one? What about in a for loop? I hear a lot of opinions about this and I wanted to see if there was anything …